Kelvin in LaTeX (\text{K})

K\text{K}
LaTeX command
\text{K}
Package
Add to your preamble:\usepackage{amsmath}
Mode
Text and math mode

Where it is used

Kelvin, the SI base unit of thermodynamic temperature, with zero at absolute zero.

Since 1967 the unit is written K with no degree sign: 300 K, not 300 °K. Absolute zero is 0 K, water's triple point 273.16 K, and T(\text{K}) = T(^{\circ}\text{C}) + 273.15. Unit symbols must be upright, which \text provides; an italic K is a variable, such as an equilibrium constant or a stiffness. Leave a thin space between number and unit, 4.2\,\text{K}. In italic theorem text \mathrm{K} is safer since \text would follow the italic font.

Minimal compilable example

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

T=273.15 K+25=298.15 KT = 273.15\,\text{K} + 25 = 298.15\,\text{K}
\documentclass{article}
\usepackage{amsmath}
\begin{document}
Kelvin: $\text{K}$

\[ T = 273.15\,\text{K} + 25 = 298.15\,\text{K} \]
\end{document}

Related symbols

All 単位・測定 →

Frequently asked questions

How do I write Kelvin in LaTeX?
Type \text{K} in math mode, for example $T = 273.15\,\text{K} + 25 = 298.15\,\text{K}$. Load amsmath first with \usepackage{amsmath}.
Which package do I need for \text{K}?
\text{K} needs amsmath: add \usepackage{amsmath} to your preamble before the document starts.
Can I use \text{K} in text mode, or only in math mode?
Both. \text{K} 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に変換
  • 論文の執筆とフォーマットに即座にサポートを取得