Square Root in LaTeX (\sqrt{x})

x\sqrt{x}
LaTeX command
\sqrt{x}
Package
No package needed: built into LaTeX
Mode
Math mode only

Where it is used

Draws a radical sign over its argument, giving the principal square root of x.

\sqrt automatically stretches the radical to cover whatever you put in braces, so \sqrt{x^2 + y^2} gets a longer vinculum and a taller sign. It is the standard way to write the Euclidean norm, the quadratic formula, and standard deviation as \sqrt{\operatorname{Var}(X)}. Radicals over arguments with different heights can look uneven; adding \vphantom{y} or \mathstrut inside makes neighboring roots match. For an index such as a cube root, use the optional argument \sqrt[3]{x}. In inline text, x^{1/2} is sometimes clearer than a radical over a tall fraction.

Minimal compilable example

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

x=−b±b2−4ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
\documentclass{article}
\begin{document}
Square Root: $\sqrt{x}$

\[ x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} \]
\end{document}

Related symbols

All 수학 기호 →

Frequently asked questions

How do I write Square Root in LaTeX?
Type \sqrt{x} in math mode, for example $x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}$. It works in plain LaTeX without loading any package.
Which package do I need for \sqrt{x}?
None. \sqrt{x} is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
Can I use \sqrt{x} in text mode, or only in math mode?
Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\sqrt{x}$ in running text.
Math poweredAI로 LaTeX 작성

최고의 AI LaTeX 편집기, Overleaf 대안

Octree는 15개 이상의 대학의 연구자들이 AI를 사용하여 논문을 더 빠르게 작성하도록 도움

  • AI로 아름다운 TikZ 다이어그램 생성
  • 이미지를 업로드하고 LaTeX로 원활하게 변환
  • 논문 작성 및 서식에 대한 즉각적인 지원 받기