Writing Greek Letters

Introduction

Welcome back to Writing Math in LaTeX — this is lesson six of seven, which means we are one lesson away from the finish line. If you have ever glanced at a physics textbook, a statistics report, or even the specifications on a smartphone camera lens, chances are you spotted a Greek letter. Symbols like π\pi, σ\sigma, and θ\theta are woven into the fabric of modern science and mathematics.

Over the previous five lessons, we built a solid toolkit: math mode delimiters, subscripts and superscripts, fractions, square roots, and standard function commands like \sin and \log. In fact, last lesson we used \theta in an example without fully explaining where it came from. Today, Greek letters get the spotlight. By the end of this lesson, you will know how to produce the most commonly used Greek letters in LaTeX and understand an important quirk about their uppercase forms.

Why Math Uses Greek Letters

Mathematics borrows heavily from the Greek alphabet. Letters like π\pi, α\alpha, θ\theta, and σ\sigma show up everywhere — from geometry and trigonometry to statistics and physics. The reason is practical: the Latin alphabet alone does not provide enough distinct symbols to name all the variables, constants, and parameters that math requires. Greek letters give us a second full alphabet to work with, and many of them have acquired conventional meanings in specific fields.

You have almost certainly seen π\pi for the ratio of a circle's circumference to its diameter, or σ\sigma for standard deviation in statistics. In LaTeX, every Greek letter has a dedicated command that works inside math mode, following the same backslash pattern we have been using throughout this course. The commands are intuitive — they are simply the English names of the letters — so picking them up is straightforward once you see the pattern.

Lowercase Greek Letters

Each lowercase Greek letter is produced by typing a backslash followed by the letter's English name. Here are the ones you will encounter most often:

CommandOutputCommon Use
\alphaα\alphaAngles, coefficients
\betaβ\betaAngles, coefficients
\gammaγ\gammaAngles, constants
\deltaδ\deltaSmall changes, differences
\epsilonϵ\epsilonSmall quantities
\thetaθ\thetaAngles (especially in trigonometry)
\lambdaλ\lambdaEigenvalues, wavelength
\muμ\muMean, micro-
\piπ\piCircle constant (3.14159…)
\sigmaσ\sigmaStandard deviation, summation index
\phiϕ\phiAngles, the golden ratio
\omegaω\omegaAngular frequency
Reference grid of 12 common lowercase Greek letters with their LaTeX commands

The syntax is exactly what we would expect from our experience with commands like \frac and \sqrt. For example:

latex
$\theta = 45$    $\pi \approx 3.14$    $\alpha + \beta = \gamma$

These produce θ=45\theta = 45, π3.14\pi \approx 3.14, and α+β=γ\alpha + \beta = \gamma. One important reminder: Greek letter commands, like all math-mode symbols, must appear inside math mode — whether inline dollar signs or display-mode delimiters like \[...\]. Outside of math mode, LaTeX will not recognize them and will produce an error.

Uppercase Greek Letters

Many Greek letters also have uppercase forms with their own distinct shapes. To produce an uppercase Greek letter, we capitalize the first letter of the command name. Here are the most common ones:

CommandOutputLowercaseLowercase Output
\GammaΓ\Gamma\gammaγ\gamma
\DeltaΔ\Delta\deltaδ\delta
\ThetaΘ\Theta\thetaθ\theta
\LambdaΛ\Lambda\lambdaλ\lambda
\PiΠ\Pi\piπ\pi
\SigmaΣ\Sigma\sigmaσ\sigma
\PhiΦ\Phi\phiϕ\phi
\OmegaΩ\Omega\omegaω\omega

The pattern is consistent: \gamma gives the lowercase γ\gamma, and \Gamma gives the uppercase Γ\Gamma. These uppercase letters appear frequently in mathematical writing — Σ\Sigma is used for summation notation, Δ\Delta often represents a change or difference, and Ω\Omega shows up in physics and set theory. With the lowercase commands already in your memory, the uppercase versions require almost no extra effort to learn.

Latin Look-Alikes: When No Command Exists

Here is the quirk we mentioned in the introduction. Not every Greek letter has a dedicated uppercase command, and the reason is surprisingly simple: some uppercase Greek letters look identical to Latin (English) capitals. Uppercase Alpha looks just like A, uppercase Beta looks just like B, uppercase Epsilon looks just like E, and so on.

Because these shapes already exist as ordinary Latin letters, LaTeX does not define separate commands for them. If we try to use \Alpha or \Beta, we get a compilation error — not a different symbol, but a hard stop. Instead, we type the Latin capital letter directly in math mode:

latex
$A$    $B$    $E$    $H$    $K$    $M$    $N$    $O$    $T$    $X$

These produce the familiar capital letters, which are visually indistinguishable from their Greek uppercase counterparts. The following table summarizes the distinction:

SituationWhat to TypeExample
Uppercase shape differs from any Latin letterUse \UppercaseName\Gamma, \Delta, \Sigma, \Omega
Uppercase shape matches a Latin capitalUse the plain Latin letterA for Alpha, B for Beta, E for Epsilon

The rule of thumb is straightforward: if a capitalized command causes an error, the Latin capital is the correct replacement.

Two-panel diagram comparing uppercase Greek letters with dedicated LaTeX commands versus those that use plain Latin capitals

Greek Letters in Real Formulas

Greek letters combine seamlessly with everything we have learned so far — subscripts, superscripts, fractions, roots, and function commands all work exactly the same way. Let us walk through a few real examples that put these symbols in context.

The area of a circle uses π\pi alongside a superscript:

latex
$A = \pi r^2$

This gives us A=πr2A = \pi r^2. Notice that AA here is just a plain Latin letter representing area, while π\pi is produced by its command.

Geometric illustration of a circle with labeled radius r and the area formula A equals pi r squared

In statistics, a common expression involves the mean μ\mu and the standard deviation σ\sigma:

latex
$\mu + 3\sigma$

This produces μ+3σ\mu + 3\sigma, describing a value three standard deviations above the mean. For a more involved formula, consider a wave function where several Greek letters appear together:

latex
\[
y = A \sin(\omega t + \phi)
\]
y=Asin(ωt+ϕ)y = A \sin(\omega t + \phi)

This expression describes a sinusoidal wave with amplitude AA, angular frequency ω\omega, time tt, and phase shift ϕ\phi. Notice how \sin from our previous lesson works alongside the Greek letters \omega and \phi — every piece nests together naturally. If you recall the Pythagorean identity sin2θ+cos2θ=1\sin^2\theta + \cos^2\theta = 1 from last lesson, you can now see that \theta was simply another Greek letter command the whole time.

One last example brings Greek letters into a superscript group. Euler's famous identity can be written in display mode:

latex
\[
e^{i\pi} + 1 = 0
\]
eiπ+1=0e^{i\pi} + 1 = 0

Here, \pi sits inside a superscript alongside ii, grouped by curly braces. As we learned in Lesson 2, the braces combine everything into a single unit for the exponent.

Conclusion and Next Steps

In this lesson, we learned how to produce Greek letters in LaTeX using backslash commands like \alpha, \beta, \pi, and \sigma for lowercase, and capitalized versions like \Gamma, \Delta, \Sigma, and \Omega for uppercase. We also discovered that some uppercase Greek letters — such as Alpha and Beta — share their appearance with Latin capitals and therefore have no dedicated command, meaning we simply type the Latin letter instead.

Now it is time to put these symbols to work in the practice exercises. You will start by writing common lowercase and uppercase Greek letters, then investigate what happens when you try a command that does not exist, and finish by building complete formulas that blend Greek letters with the notation you have been mastering throughout this course.

Sign up

Join the 1M+ learners on CodeSignal

Be a part of our community of 1M+ users who develop and demonstrate their skills on CodeSignal