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 Units at Measurements →

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 poweredSumulat ng LaTeX gamit ang AI

Pinakamahusay na AI LaTeX Editor, Alternatibo sa Overleaf

Tinutulungan ng Octree ang mga researcher mula sa 15+ na unibersidad na sumulat ng research papers nang mas mabilis gamit ang AI

  • Gumawa ng magagandang TikZ diagrams gamit ang AI
  • Mag-upload ng larawan at i-convert ito sa LaTeX nang walang problema
  • Makakuha ng instant na tulong sa pagsulat at pag-format ng research papers