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 Kimia →

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 poweredTulis LaTeX menggunakan AI

Editor LaTeX AI Terbaik, Alternatif Overleaf

Octree membantu penyelidik dari 15+ universiti menulis kertas penyelidikan dengan lebih cepat menggunakan AI

  • Jana diagram TikZ yang cantik menggunakan AI
  • Muat naik imej dan tukar ke LaTeX dengan lancar
  • Dapatkan bantuan segera untuk menulis dan memformat kertas penyelidikan