When to write an accent mark
The rule: When to write an accent mark
The accent mark (´) shows the stress where it breaks the basic rule. Agudas (stressed on the last syllable) are written with an accent mark if they end in a vowel, n, or s: café, canción, inglés. Llanas (stressed on the second-to-last) are the opposite — they get one if they end in something other than a vowel, n, or s: árbol, lápiz, difícil. Esdrújulas always have one: música, sábado, teléfono. A word has only one accent mark, and it goes only on a vowel.
Examples
café
aguda ending in a vowel → accent mark
aguda ending in a vowel → accent mark
canción
aguda ending in n → accent mark
aguda ending in n → accent mark
árbol
llana ending in l → accent mark
llana ending in l → accent mark
examen
llana ending in n → no accent mark
llana ending in n → no accent mark
sábado
esdrújula → always an accent mark
esdrújula → always an accent mark