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 化学 →

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 poweredAIでLaTeXを書く

最高のAI LaTeXエディタ、Overleaf代替

Octreeは15以上の大学の研究者がAIを使って論文をより速く書くのを支援

  • AIで美しいTikZダイアグラムを生成
  • 画像をアップロードしてシームレスにLaTeXに変換
  • 論文の執筆とフォーマットに即座にサポートを取得