Perpendicular Symbol in LaTeX

Write perpendicular as \perp: AB \perp CD. Parallel is \parallel, and the negations are \not\perp and \nparallel (amssymb). For an orthogonal complement put \perp in a superscript: W^{\perp}.

Perpendicular and parallel

  • a \perp b
    a ⊥ b

    ⊥ as a relation, with space on both sides.

  • a \not\perp b
    a ⊥̸ b

    Not perpendicular.

  • a \parallel b
    a ∥ b

    ∥ parallel.

  • a \nparallel b
    a ∦ b

    ∦ not parallel (amssymb).

  • W^{\perp}
    W ⊥

    Orthogonal complement.

  • \bot
    ⊥

    ⊥ as an ordinary symbol (logic "false", bottom element).

Try it live

Change the formula and the preview redraws as you type. Copy the LaTeX, download a PNG or SVG, copy it for Word, or use Edit here on any example below to load it.

Templates

Perpendicular and parallel examples

Each result below is drawn from the LaTeX under it. Copy the code, edit it on this page, or open it in the full editor.

\perp or \bot

Both draw ⊥. \perp is a relation (space on both sides), right between two objects. \bot is an ordinary symbol, used for "false" in logic and the bottom element of a lattice. In superscripts the difference disappears, so W^{\perp} and W^{\bot} look the same.

Parallel and the norm bars

\parallel is a relation like \perp. The same double bar written as \| is an ordinary symbol used for norms, so do not use \| for "is parallel to".

Common mistakes

  • \bot has no relation spacing, so the letters crowd the symbol.

    Instead of
    a \bot b
    Write
    a \perp b
  • Two keyboard bars are two separate symbols with a gap.

    Instead of
    l_1 || l_2
    Write
    \ell_1 \parallel \ell_2
  • \nparallel comes from amssymb.

    Instead of
    a \nparallel b  (no amssymb)
    Write
    \usepackage{amssymb}

In Overleaf, MathJax and Word

  • Overleaf and pdfLaTeX

    \perp, \parallel, \bot need nothing; \nparallel needs amssymb.

  • MathJax and KaTeX

    MathJax and KaTeX support all commands on this page.

  • Microsoft Word

    In a Word equation \perp then Space gives ⊥ and \parallel gives ∥.

Have this math on paper, in a PDF or a photo?

Retyping formulas is slow. These converters read whole pages and handwriting and give you LaTeX or Word with every equation editable.

Single printed formulas are free: 3 a day without an account, 6 with a free account. New accounts get 30 credits to try handwriting, pages and documents; failed conversions return their credits. See plans and credit prices.

Perpendicular and parallel in LaTeX: questions

What is the LaTeX command for perpendicular?
\perp.
How do I write the orthogonal complement?
W^{\perp}.
How do I write parallel lines?
\ell_1 \parallel \ell_2.

Have the formula as a picture?

Paste a screenshot or photo of the equation and get its LaTeX, ready to copy or open in the editor.

Convert an image to LaTeX