Skip to main content
v2026.11,858 entries · CC-BY 4.0

LaTeX Vector Product: Cross Product, Dot Product and Related Symbols

Typeset the cross and dot product in LaTeX: times, cdot, mathbf and vec, plus how they differ from prod, wedge and otimes.

Written and maintained by CASRAI Editorial Board

Last updated

In LaTeX there is no single “vector product” command: the cross product is conventionally typed with \times between two vector symbols, the dot (scalar) product with \cdot, and vectors themselves are marked with \mathbf{...} or \vec{...}. This guide gives the exact code for each, separates the vector products from look-alike symbols (\prod, \otimes, \wedge), and shows copy-paste examples you can compile in Overleaf. Written for researchers typesetting physics, engineering or statistics notation.

Note on what is sourced: which symbol means “cross” or “dot” is mathematical notation convention, not something the LaTeX documentation defines. The documentation sources cited below confirm that the commands exist and what category they belong to.

What it is used for in research

Vector products appear in mechanics, electromagnetism, fluid dynamics, computer graphics and multivariate statistics. In a manuscript you usually need three things: the operator symbol, a way to show that the operands are vectors, and correct math-mode delimiters. The word “product” is also overloaded: a big capital-pi product over an index is a different object from a vector product, which is why searches for this topic return both.

Which command for which product

The commands below are all documented in the Overleaf symbol list or the LaTeX Wikibooks mathematics chapter. The meaning in the second column is the usual mathematical convention.

Product Usual notation LaTeX code Documented as
Cross (vector) product a × b \mathbf{a} \times \mathbf{b} \times is a binary operator (Overleaf, Wikibooks)
Dot (scalar) product a · b \mathbf{a} \cdot \mathbf{b} \cdot is the binary multiplication operator (Wikibooks)
Wedge (exterior) product a ∧ b a \wedge b \wedge is in the binary operation list (Overleaf, Wikibooks)
Tensor / outer-product style symbol a ⊗ b a \otimes b \otimes is in the binary operators table (Overleaf)
Cartesian product of sets A × B A \times B same \times operator, used between sets
Product over an index (not a vector product) ∏ xi \prod_{i=1}^{n} x_i \prod is a big operator (Wikibooks)

The same \times serves the cross product and the Cartesian product; the operands tell the reader which is meant. See the related guides on blackboard-bold sets with mathbb and set operators in LaTeX when the operands are sets.

Install or access (official source only)

  • Online: the Overleaf editor needs no installation. See what Overleaf is and collaborative LaTeX alternatives.
  • Local install: the AMS packages are distributed on CTAN. The CTAN page for amsmath (ctan.org/pkg/amsmath, read 2026-11-07) lists it as the main package of AMS-LaTeX, maintained by the LaTeX Project Team under the LPPL 1.3c, with amsldoc.pdf as the user guide. Loading amsmath also loads amsbsy, which provides bold symbols. Add \usepackage{amsmath} to the preamble.

Step-by-step: typeset vector products

  1. Open a document with a math environment. Overleaf’s mathematical-expressions page documents inline delimiters \( ... \), $ ... $ and \begin{math}...\end{math} (it states the choice among them is a matter of taste) and display delimiters \[ ... \], \begin{displaymath} and \begin{equation}.
  2. Mark the vectors. Use \mathbf{a} for bold vectors (the Wikibooks font table lists \mathbf as the bold font, commonly used for vectors) or \vec{a} for an arrow over the letter. For a long arrow over several letters use \overrightarrow{AB}.
  3. Add the operator. Type \times for the cross product or \cdot for the dot product between the two vector symbols.
  4. Set the result. Write the relation as ordinary math: \mathbf{c} = \mathbf{a} \times \mathbf{b}.
  5. Compile and check the output against the table above.

Copy-paste examples

Inline cross product, bold style:

The torque is \( \boldsymbol{\tau} = \mathbf{r} \times \mathbf{F} \).

Display dot product, arrow style:

\[ \vec{a} \cdot \vec{b} = a_1 b_1 + a_2 b_2 + a_3 b_3 \]

Numbered equation:

\begin{equation}
  \mathbf{c} = \mathbf{a} \times \mathbf{b}
\end{equation}

Index product, for contrast:

\[ \prod_{i=1}^{n} x_i \]

Choosing a vector marking style

Style Code What the documentation says
Bold \mathbf{a} Listed as the bold math font, commonly used for vectors (Wikibooks)
Bold Greek or other symbols \boldsymbol{\tau} Recommended for bold lowercase Greek and other symbols; works only if a bold version of the symbol exists in the current font (Wikibooks)
Short arrow \vec{a} Accent that places an arrow over the letter (Wikibooks)
Long arrow \overrightarrow{AB} Long arrow over several characters (Wikibooks)

Pick one style and use it throughout a document; mixing bold and arrow styles for the same kind of object confuses readers. For text-mode bold and the bm package, see the LaTeX boldface guide.

Output and how to read it

The cross-product example renders as a bold or arrowed pair of symbols joined by a multiplication cross; the dot-product example renders with a centred dot. In display mode the equation sits on its own line; in inline mode it flows with the sentence. Overleaf’s documentation notes that how an equation is displayed depends on the delimiter you choose, so use display delimiters for formulas you want to stand out or number.

Troubleshooting

  • Greek letter is not bold with \mathbf. Use \boldsymbol{...} instead (Wikibooks). It only works if the current font has a bold version of that symbol.
  • Symbols look wrong or error. Make sure the command sits inside one of the math delimiters listed in step 1 rather than in plain text.
  • The cross and dot look like ordinary multiplication. That is expected: LaTeX renders the symbol only. Whether it denotes a vector product depends on the vector styling around it and on the definition you give the reader.
  • You need a custom name for an operator. \DeclareMathOperator takes two parameters (the command name and the displayed text) and requires amsmath; \DeclareMathOperator* is for operators whose subscripts are set as limits (Overleaf Operators page).
  • Greek letters in vector names. See the Greek symbol guide for the commands.

Free alternatives and other places the code works

Option Use
Overleaf online editor Compile the examples in the browser; the symbol and expression documentation cited here is Overleaf’s own.
Local LaTeX with amsmath from CTAN Compile offline; amsmath is distributed on CTAN as described above.
MathJax on web pages Render LaTeX-style math in a browser; see the MathJax LaTeX guide.

FAQ

What is the LaTeX code for the cross product?

Use \times between two vector symbols, for example \mathbf{a} \times \mathbf{b}. \times is documented as a binary operator in the Overleaf symbol table; using it for the cross product is standard notation.

What is the LaTeX code for the dot product?

Use \cdot, for example \mathbf{a} \cdot \mathbf{b}. The Wikibooks mathematics chapter describes \cdot as the binary multiplication operator.

Is \prod the vector product?

No. \prod is a big operator for products over an index, such as \prod_{i=1}^{n} x_i. It is the other meaning of “product” that shares the search results with vector products.

How do I write the symbol for the wedge or tensor product?

Use \wedge for the wedge symbol and \otimes for the tensor-product symbol; both appear in the Overleaf operator tables.

Bold or arrow for vectors?

Either works. \mathbf and \vec are both documented; choose one and apply it consistently.

Sources

  • Overleaf, List of Greek letters and math symbols: overleaf.com/learn/latex/List_of_Greek_letters_and_math_symbols (read 2026-11-07)
  • Overleaf, Mathematical expressions: overleaf.com/learn/latex/Mathematical_expressions (read 2026-11-07)
  • Overleaf, Operators: overleaf.com/learn/latex/Operators (read 2026-11-07)
  • Wikibooks, LaTeX/Mathematics: en.wikibooks.org/wiki/LaTeX/Mathematics (read 2026-11-07)
  • CTAN, amsmath package: ctan.org/pkg/amsmath (read 2026-11-07)

Follow CASRAI

Research-administration guidance, standards updates and independent tool reviews.

Ask CASRAI · free to try

Ask about LaTeX Vector Product: Cross Product, Dot Product and Related Symbols

Ask your first 2 questions free below. Subscribers get 150 a day for $29 a month.

An AI assistant specialized in research administration. It cites the sources behind every answer, labels web answers and says when it can't answer.

Answers draw on CASRAI's guides and dictionary plus the federal and funder documents we index: Federal Register, Grants.gov, Regulations.gov and UKRI.

Works on this site and inside Claude, Cursor and the AI tools you already use.

Everything CASRAI publishes — this page, the dictionary, the guides and the news — stays free to read, with no account and no card.

Referenced across the research world

University of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logoUniversity of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logo
  • University of Cambridge logo
  • Columbia University logo
  • Crossref logo
  • University of Edinburgh logo
  • Harvard University logo
  • University of Oxford logo
  • Princeton University logo
  • Stanford School of Medicine logo
  • University College London logo
  • ORCID logo

View CASRAI adoption →