Phi in LaTeX (\phi)

ϕ\phi
LaTeX command
\phi
Package
No package needed: built into LaTeX
Mode
Math mode only
Copy the Unicode character
ϕU+03D5

Where it is used

Lowercase Greek phi, used for angles, the golden ratio, Euler's totient function, and feature maps.

\phi gives the closed, stroked form, while \varphi gives the open, loopy form; many authors choose \varphi for functions and keep \phi for angles. Number theory writes Euler's totient as \varphi(n) or \phi(n), the golden ratio is \phi = (1 + \sqrt{5})/2, and spherical coordinates use \phi for an angle. Machine learning uses \phi(x) for a feature map in kernel methods, and physics uses it for scalar potentials and wavefunctions. Do not confuse \phi with \emptyset or the Scandinavian Ø.

Also listed under: Trigonometri

Minimal compilable example

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

ϕ=1+52≈1.618\phi = \frac{1 + \sqrt{5}}{2} \approx 1.618
\documentclass{article}
\begin{document}
Phi: $\phi$

\[ \phi = \frac{1 + \sqrt{5}}{2} \approx 1.618 \]
\end{document}

Related symbols

All Simbol Yunani →

Frequently asked questions

How do I write Phi in LaTeX?
Type \phi in math mode, for example $\phi = \frac{1 + \sqrt{5}}{2} \approx 1.618$. It works in plain LaTeX without loading any package.
Which package do I need for \phi?
None. \phi is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
Can I use \phi in text mode, or only in math mode?
Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\phi$ in running text. If you only need the glyph in text, paste the Unicode character ϕ instead (with XeLaTeX or LuaLaTeX and a font that has it).
Math poweredTulis LaTeX menggunakan AI

Editor LaTeX AI Terbaik, Alternatif Overleaf

Octree membantu peneliti dari 15+ universitas menulis makalah penelitian lebih cepat menggunakan AI

  • Hasilkan diagram TikZ yang indah menggunakan AI
  • Unggah gambar dan konversi ke LaTeX dengan mulus
  • Dapatkan bantuan instan untuk menulis dan memformat makalah penelitian