Superscript Charge in LaTeX (\text{Na}^{+})

Na+\text{Na}^{+}
LaTeX command
\text{Na}^{+}
Package
Add to your preamble:\usepackage{amsmath}
Mode
Math mode only

Where it is used

Ion notation with the charge as a superscript, here the sodium cation carrying a single positive charge.

Write multi-charge ions with the number before the sign, \text{Ca}^{2+} and \text{SO}_4^{2-}, following IUPAC order. Braces matter: ^{2+} keeps both characters in the superscript. A trailing minus in a superscript is treated as unary, so ^{-} renders cleanly. Use \mathrm{Na} instead of \text{Na} if the formula might appear inside an italic theorem or caption, since \text copies the surrounding font while \mathrm is always upright. When subscripts and charges coincide, the charge sits above the count, as in sulfate.

Minimal compilable example

Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.

NaCl→Na++Cl−\text{NaCl} \to \text{Na}^{+} + \text{Cl}^{-}
\documentclass{article}
\usepackage{amsmath}
\begin{document}
Superscript Charge: $\text{Na}^{+}$

\[ \text{NaCl} \to \text{Na}^{+} + \text{Cl}^{-} \]
\end{document}

Related symbols

All Scheikunde →

Frequently asked questions

How do I write Superscript Charge in LaTeX?
Type \text{Na}^{+} in math mode, for example $\text{NaCl} \to \text{Na}^{+} + \text{Cl}^{-}$. Load amsmath first with \usepackage{amsmath}.
Which package do I need for \text{Na}^{+}?
\text{Na}^{+} needs amsmath: add \usepackage{amsmath} to your preamble before the document starts.
Can I use \text{Na}^{+} in text mode, or only in math mode?
Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\text{Na}^{+}$ in running text.
Math poweredSchrijf LaTeX met AI

Beste AI LaTeX Editor, Overleaf Alternatief

Octree helpt onderzoekers van 15+ universiteiten sneller onderzoeksartikelen schrijven met AI

  • Genereer mooie TikZ-diagrammen met AI
  • Upload afbeelding en converteer naadloos naar LaTeX
  • Krijg directe hulp bij het schrijven en opmaken van onderzoeksartikelen