Learn Spanish GrammarSpanish grammar explained, A1 to C2

Grammar guides · 6 min read · Updated 2026-11-15

How to Type Spanish Accents (á, ñ, ¿) and When to Use Them

To type Spanish accents on a Mac, press Option + E, then the vowel (á, é, í, ó, ú); Option + N, then N for ñ. On Windows, switch to the US-International keyboard and type ' then the vowel for á, or ~ then n for ñ. On a phone, press and hold the letter and slide to the accented version. The second half of this guide explains where the accent goes, which is simpler than most learners think.

Mac

Dead-key shortcuts (work in every app)

CharacterKeys
á é í ó úOption + E, release, then the vowel
Á É Í Ó ÚOption + E, release, then Shift + vowel
ñ / ÑOption + N, release, then n / Shift + N
ü / ÜOption + U, release, then u / Shift + U
¿Option + Shift + ?
¡Option + 1
« »Option + \ and Option + Shift + \

Press and hold

Hold down a letter key (for example e) and a small menu appears. Press the number shown under é, or click it. This works on macOS for most letters but not for ¿ and ¡.

Windows

Add it once in Settings → Time & language → Language & region → (your language) → Language options → Add a keyboard → United States-International. Switch with Win + Space.

CharacterKeys
á é í ó ú' (apostrophe), then the vowel
ñShift + ` (the tilde ~), then n
üShift + ' (the quote "), then u
¿Right Alt + /
¡Right Alt + 1

To type a plain apostrophe, press ' then Space. This is the one habit to get used to.

Option 2: Alt codes

Hold Alt and type the number on the numeric keypad (not the number row). Useful on a shared computer where you can't change settings.

CharacterAlt codeCharacterAlt code
áAlt + 160ÁAlt + 0193
éAlt + 130ÉAlt + 0201
íAlt + 161ÍAlt + 0205
óAlt + 162ÓAlt + 0211
úAlt + 163ÚAlt + 0218
ñAlt + 164ÑAlt + 165
üAlt + 129ÜAlt + 154
¿Alt + 168¡Alt + 173

Option 3: the Spanish keyboard layout

If you write a lot of Spanish, the Spanish (Spain) or Latin American layout puts ñ on its own key and accents on a dead key next to it. The catch: several symbols move, so it takes a week to adjust.

Microsoft Word shortcuts

In Word only: Ctrl + ' then the vowel for á; Ctrl + Shift + ~ then n for ñ.

Chromebook

Add the US International keyboard in Settings → Device → Keyboard → Change input settings. Then use the same dead keys as on Windows: ' + vowel, Shift + ` + n. AltGr (right Alt) + / gives ¿ and AltGr + 1 gives ¡.

iPhone and Android

Press and hold the letter until a row of options appears, then slide to the one you want.

CharacterHold
á é í ó úthe plain vowel
ñn
üu
¿? (on the symbols keyboard)
¡! (on the symbols keyboard)

Even better: add Spanish as a second keyboard language. Autocorrect will then add accents for you (cancion → canción), and you'll get a proper ñ key. Check its suggestions, though: it can't tell esta (this) from está (is).

Linux

Set a Compose key in your keyboard settings, then type Compose, ', a for á, Compose, ~, n for ñ, Compose, ?, ? for ¿, Compose, !, ! for ¡.

Where does the accent go? The rules

Spanish written accents follow three rules based on which syllable is stressed. See where the stress falls for the full lesson.

Stress on...Accent needed when the word ends in...Examples
last syllablea vowel, -n or -scafé, canción, inglés, está
second-to-lastany consonant except -n or -sárbol, fácil, lápiz, azúcar
third-to-last or earlieralwaysmúsica, teléfono, sábado, rápido

Words that follow the default pattern need no accent: casa, hablan, comer, ciudad, reloj.

Accents that break up vowel pairs

When a weak vowel (i, u) next to another vowel is stressed, it gets an accent to show that the vowels are pronounced separately: día, país, baúl, oído, frío. See diphthongs and syllables.

Accents that tell words apart

Some short words carry an accent only to distinguish them from a twin:

With accentWithout
tú — youtu — your
él — heel — the
mí — memi — my
sí — yessi — if
sé — I knowse — oneself
té — teate — you (object)
dé — give (subj.)de — of
más — moremas — but (literary)

See diacritic accents.

Question and exclamation words

Qué, cómo, dónde, cuándo, quién, cuál, cuánto take an accent in questions and exclamations, even inside a sentence: No sé dónde vive. — I don't know where he lives. Without the question meaning, no accent: La casa donde vivo. See question and exclamation words and the question words guide.

Do capitals need accents?

Yes. Álvaro, ÉXITO, Ángela all keep their accent. Leaving them off was a typewriter-era habit that the RAE has never accepted.

Common accent mistakes

✗✓Why
sólo, éstesolo, estesince 2010 these normally take no accent
examénexamenstressed second-to-last, ends in -n
exámenexamensame rule; but the plural is exámenes
esta bienestá bienestá = is
Como estas?¿Cómo estás?question word, final -s stress, opening ¿
fué, dió, viófue, dio, vioone-syllable words don't take an accent

The opening marks ¿ and ¡ are not optional in standard Spanish. See ¿ and ¡.

FAQ

How do I type the ñ on an English keyboard?

On a Mac, press Option + N, then N. On Windows, add the US-International keyboard and type Shift + ` (tilde), then N, or hold Alt and type 164 on the numeric keypad. On a phone, hold down the N key and slide to ñ.

Are accent marks necessary in Spanish?

Yes. They are part of the spelling, and leaving them out can change meaning: papa (potato) vs papá (dad), esta (this) vs está (is), hablo (I speak) vs habló (he spoke). In casual texting many people skip them, but in any written work they count as spelling mistakes.

Does "ñ" count as an accent?

No. Ñ is a separate letter of the Spanish alphabet, between n and o, with its own sound (like ny in canyon). The squiggle on top is called a tilde, which in Spanish is also the word for the written accent on vowels.

Keep going