Per (slash in units) in LaTeX (/)

//
LaTeX command
/
Package
No package needed: built into LaTeX
Mode
Text and math mode

Where it is used

Solidus used to mean 'per' in compound units like m/s, dividing one unit by another.

In math mode / is an ordinary symbol with no extra spacing, which gives the tight \text{m}/\text{s} look units need. SI rules allow only one solidus in a unit, so acceleration is \text{m}/\text{s}^2 and never m/s/s; for complicated units, negative exponents such as \text{J}\,\text{kg}^{-1}\,\text{K}^{-1} are clearer. Use parentheses when the denominator has several factors: \text{W}/(\text{m}^2\,\text{K}). For general fractions in displayed equations, \frac is usually better than a slash, but inline the slash avoids cramped stacked numbers.

Minimal compilable example

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

c=4186 J/(kg K)c = 4186\,\text{J}/(\text{kg}\,\text{K})
\documentclass{article}
\usepackage{amsmath}
\begin{document}
Per (slash in units): $/$

\[ c = 4186\,\text{J}/(\text{kg}\,\text{K}) \]
\end{document}

Related symbols

All 単位・測定 →

Frequently asked questions

How do I write Per (slash in units) in LaTeX?
Type / in math mode, for example $c = 4186\,\text{J}/(\text{kg}\,\text{K})$. It works in plain LaTeX without loading any package.
Which package do I need for /?
None. / is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
Can I use / in text mode, or only in math mode?
Both. / compiles in running text as well as inside $...$; in a formula keep it in math mode so it gets math fonts and spacing.
Math poweredAIでLaTeXを書く

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

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

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