Skip to content
latexci
PreviewDiffWord → LaTeXBibTeXSymbolsTableTemplatesAcademics
Sign inFree
PreviewDiffWord → LaTeXBibTeXSymbolsTableTemplatesAcademicsFree
Discord community ↗GitHub ↗
Sign in
LaTeX symbols›Accents›Vec

Vec in LaTeX

The LaTeX command for vec is \vec{x} (vector arrow).

x⃗\vec{x}x
\vec{x}
Accents · no package needed

Writing a paper? The table generator and the BibTeX cleaner are one click away, no account.

Which command should you use?

CommandPackageUse it when
\vec{v} recommendednoneArrow over one letter, common in physics.
\mathbf{v} noneBold upright, common in engineering and linear algebra.
\boldsymbol{\mu} amsmathBold Greek or bold italic letters.
\overrightarrow{AB} noneArrow over several letters: the vector from A to B.
Table 1. Ways to write vec in LaTeX. Every line was compiled with pdfLaTeX (TeX Live 2026) loading only the package shown.
Common mistake. \vec draws a short arrow sized for one letter; over AB use \overrightarrow. And \mathbf leaves Greek letters thin.

How to type Vec

Write \vec{x} inside math mode, that is between $…$ for inline math or in a \[ … \] or equation block for display math. It is part of core LaTeX math, so no extra package is required.

Example
$\vec{F} = m \vec{a}$F⃗=ma⃗\vec{F} = m \vec{a}F=ma

Open this example in the live preview: it renders as you type, with no compiler and no signup.

Related Accents symbols

x̲\underline{x}x̂\hat{x}x̃\tilde{x}x̄\bar{x}x̄\overline{x}x\overbrace{x}^{n}x\underbrace{x}_{n}ẋ\dot{x}ẍ\ddot{x}x́\acute{x}x̀\grave{x}x̌\check{x}x̆\breve{x}x̊\mathring{x}

Math accents in LaTeX: the full table or search all 350+ LaTeX symbols.

FAQ

How do you write vec (x⃗) in LaTeX?

Use \vec{x} in math mode; it needs no extra package. For example, $\vec{F} = m \vec{a}$.

Which package provides \vec{x}?

None: \vec{x} is built into LaTeX, so no extra package is required.

What is the most common mistake with vec in LaTeX?

\vec draws a short arrow sized for one letter; over AB use \overrightarrow. And \mathbf leaves Greek letters thin.

latexci

Free LaTeX tools for researchers and students, in any browser. No paid plan, no advertising.

Star on GitHubBuy me a coffee

Tools

Live PreviewBibTeX ToolsDOI → BibTeXarXiv → BibTeXPubMed → BibTeXISBN → BibTeXLaTeX DiffWord → LaTeXSymbol SearchTable GeneratorTemplatesCV Generator

Learn

Academics hubLife after OverleafFreeGitHub

Community

DiscordGitHub IssuesFeature Requests

© 2026 latexci. By Sitraka Forler, sitraka.lu

PrivacyTerms