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)
| Character | Keys |
|---|---|
| á é í ó ú | 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
Option 1: the US-International keyboard (recommended)
Add it once in Settings → Time & language → Language & region → (your language) → Language options → Add a keyboard → United States-International. Switch with Win + Space.
| Character | Keys |
|---|---|
| á é í ó ú | ' (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.
| Character | Alt code | Character | Alt 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.
| Character | Hold |
|---|---|
| á é í ó ú | 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 syllable | a vowel, -n or -s | café, canción, inglés, está |
| second-to-last | any consonant except -n or -s | árbol, fácil, lápiz, azúcar |
| third-to-last or earlier | always | mú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 accent | Without |
|---|---|
| tú — you | tu — your |
| él — he | el — the |
| mí — me | mi — my |
| sí — yes | si — if |
| sé — I know | se — oneself |
| té — tea | te — you (object) |
| dé — give (subj.) | de — of |
| más — more | mas — 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, éste | solo, este | since 2010 these normally take no accent |
| examén | examen | stressed second-to-last, ends in -n |
| exámen | examen | same rule; but the plural is exámenes |
| esta bien | está bien | está = is |
| Como estas? | ¿Cómo estás? | question word, final -s stress, opening ¿ |
| fué, dió, vió | fue, dio, vio | one-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
- The stress rules: Where the stress falls
- Accent twins: Diacritic accents
- Punctuation: ¿ and ¡
- Expert level: Accents: monosyllables, -mente and compounds
- The rules changed: The 2010 spelling reforms