The Accent Letters

How to Type ń (N with acute) on LaTeX

Published June 27, 2026, 2 min read

Typing ń (n with acute) on LaTeX takes a few seconds once you know the trick. The short answer is \'{n}. Read on for step-by-step instructions, the uppercase Ń and what to do when a method does not work.

ń on LaTeX: \'{n}

Ń on LaTeX: \'{N}

Or copy it:

Method 1: LaTeX command

Write \'{n} in text mode. Load \usepackage[T1]{fontenc} for correct hyphenation and copy-paste from the PDF.

Method 2: Type the character directly

Since 2018 pdfLaTeX reads UTF-8 by default, so you can paste ń into your source. On Overleaf, set the compiler in Menu → Compiler.

Method 3: In math mode

For a variable with this accent, use $\acute{n}$. Math accents are for symbols, so use the text command for words.

How to type the capital Ń

The uppercase form works the same way with Shift added where a letter is typed.

LaTeX command

Write \'{N} in text mode. Load \usepackage[T1]{fontenc} for correct hyphenation and copy-paste from the PDF.

Type the character directly

Since 2018 pdfLaTeX reads UTF-8 by default, so you can paste Ń into your source. On Overleaf, set the compiler in Menu → Compiler.

About the letter ń

ń is Unicode U+0144, named LATIN SMALL LETTER N WITH ACUTE. It is used in Polish and Yoruba. A short line slanting up to the right. It marks stress in Spanish (canción), a closed vowel in French (été), vowel length in Czech, Hungarian and Irish, and a rising tone in Vietnamese and Pinyin. See the ń character page for every code and shortcut.

Troubleshooting

Frequently asked questions

What is the shortcut for ń on LaTeX?

\'{n}.

Can I just copy and paste ń?

Yes. Click the copy button above, then paste with Ctrl+V on Windows and Chromebook, Cmd+V on a Mac, or touch and hold and choose Paste on a phone.

What is the Unicode code for ń?

U+0144. In HTML it is ń.

Related guides

All accent shortcuts for LaTeX