
Last checked by the TextEditor.com team
Write a short formula in plain text
Chat apps, forms and spreadsheets have no equation editor. Plain Unicode text still gets you far: x² + y² = r² is just eight characters, and it pastes anywhere. The formula builder at the top of the page helps you type it.
Press a symbol in the bar to add it where your cursor is. For powers, type ^ before one character, so x^2 becomes x². An underscore does the same for subscript, so H_2O becomes H₂O. For longer powers, switch the mode to Superscript, type, and switch back. With shortcuts on, the builder also changes these as you type:
| You type | You get | You type | You get |
|---|---|---|---|
!= | ≠ | <= | ≤ |
>= | ≥ | +- | ± |
~= | ≈ | -> | → |
=> | ⇒ | <=> | ⇔ |
sqrt | √ | inf | ∞ |
pi | π | x^2 | x² |
Plain text has limits. A fraction bar, a root sign that covers a long term, or a matrix needs real layout. For those, the LaTeX button gives you a starting point you can paste into a LaTeX editor, or into Word's equation box, which reads a similar syntax.
The most used math symbols and their names
Click a column title to sort. Click a symbol to copy it. The Alt codes only work on Windows, with the number pad.
| Symbol | HTML | LaTeX | Alt code | ||
|---|---|---|---|---|---|
| Minus sign | U+2212 | ||||
| Multiplication sign | U+00D7 | Alt+0215 | |||
| Division sign | U+00F7 | Alt+0247 or Alt+246 | |||
| Plus-minus sign | U+00B1 | Alt+0177 or Alt+241 | |||
| Not equal to | U+2260 | ||||
| Less-than or equal to | U+2264 | Alt+243 | |||
| Greater-than or equal to | U+2265 | Alt+242 | |||
| Almost equal to | U+2248 | Alt+247 | |||
| Identical to | U+2261 | Alt+240 | |||
| Square root | U+221A | Alt+251 | |||
| Infinity | U+221E | Alt+236 | |||
| Greek small letter pi | U+03C0 | Alt+227 | |||
| N-ary summation | U+2211 | ||||
| Integral | U+222B | ||||
| Partial differential | U+2202 | ||||
| Degree sign | U+00B0 | Alt+0176 or Alt+248 | |||
| Element of | U+2208 | ||||
| Empty set | U+2205 | ||||
| For all | U+2200 | ||||
| There exists | U+2203 | ||||
| Therefore | U+2234 | ||||
| Proportional to | U+221D |
LaTeX is the typesetting system most math papers are written in. Its names are not part of Unicode. We show them because many students write both. One trap: in LaTeX, \epsilon draws ϵ and \varepsilon draws the ε you see in most books. The same goes for \phi (ϕ) and \varphi (φ).
Minus sign, hyphen or dash?
The key next to 0 on your keyboard types the hyphen-minus, U+002D. It is a compromise from the typewriter days, when one key had to do the work of a hyphen, a minus and a dash. Unicode has a true minus sign, − U+2212. Most fonts draw it as wide as the plus sign and at the same height, so 5 − 3 lines up with 5 + 3.
5 - 3 5 − 3 5 + 3
The blue box shows how wide each character is in the font on your screen.
Use − in text, like a temperature of −5 °C or a math worksheet. A screen reader also says "minus" for it. Keep the keyboard key for anything a computer must read: code, web addresses and spreadsheet formulas. Excel and Google Sheets expect the keyboard key, so a formula pasted with the true minus sign will not work.
Math letters like ℝ, 𝐯 and 𝔸
Math uses letter styles to tell things apart. ℝ means the real numbers, a bold 𝐯 is often a vector, and an italic 𝑥 is a variable. Unicode added 991 of these styled letters and digits in version 3.1 in 2001, in the Mathematical Alphanumeric Symbols block, U+1D400 to U+1D7FF.
The double-struck alphabet below has seven holes. ℂ, ℍ, ℕ, ℙ, ℚ, ℝ and ℤ were already in Unicode since 1991, in the Letterlike Symbols block, because mathematicians used them so often. Unicode did not copy them into the new block. It left those code points empty instead.
The blue ones live at U+2100 to U+214F. Their own slots, like U+1D53A for C, are reserved and stay empty.
There are 24 such holes across all the styles. Even the italic small h is missing: it is ℎ U+210E, the Planck constant. Any tool that turns words into these letters has to fill the holes from the older block. Our font converter for whole sentences does that for you. Wikipedia has the full chart of Mathematical Alphanumeric Symbols.
Unicode asks people not to use these letters as a font in normal text. Screen readers may read 𝐇𝐞𝐥𝐥𝐨 as "mathematical bold capital H" and so on, letter by letter. In a formula, that is exactly right.
Superscript and subscript limits
Unicode has raised and lowered digits, plus signs, minus signs and brackets, so x⁻¹ and aₙ₊₁ work. Letters are another story. They were added one at a time for phonetics, not for math. Every small letter now has a superscript form, but only part of the alphabet can go below the line.
| Letter | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | v | w | x | y | z |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Superscript | ᵃ | ᵇ | ᶜ | ᵈ | ᵉ | ᶠ | ᵍ | ʰ | ⁱ | ʲ | ᵏ | ˡ | ᵐ | ⁿ | ᵒ | ᵖ | 𐞥 | ʳ | ˢ | ᵗ | ᵘ | ᵛ | ʷ | ˣ | ʸ | ᶻ |
| Subscript | ₐ | none | none | none | ₑ | none | none | ₕ | ᵢ | ⱼ | ₖ | ₗ | ₘ | ₙ | ₒ | ₚ | none | ᵣ | ₛ | ₜ | ᵤ | ᵥ | | ₓ | | |
The underlined ones are new, from Unicode 14.0 or later, and many phones show them as boxes. So aₓ is safe, but a subscript b, c, d, f, g or q does not exist. The full sets, with capitals and a converter, are in the superscript generator and the subscript generator.
Typing math symbols on Windows, Mac and in Word
- WindowsAlt codes on the number pad work for a few symbols: Alt+0177 ±, Alt+0215 ×, Alt+0247 ÷, Alt+251 √, Alt+236 ∞, Alt+243 ≤. In Office apps, Insert, Symbol has a Mathematical Operators list.
- MacThe Option key has many math signs built in: Option+= ≠, Option+, ≤, Option+. ≥, Shift+Option+= ±, Option+V √, Option+5 ∞, Option+P π. For the rest, open Edit, Emoji and Symbols in most apps.
- WordPress Alt+= to start an equation. Inside it, type a LaTeX style name and a space: \neq gives ≠, \pm gives ± and \infty gives ∞. Word calls this Math AutoCorrect.
Word can use the same names outside equations too. Turn on "Use Math AutoCorrect rules outside of math regions" under File, Options, Proofing, AutoCorrect Options, Math AutoCorrect. Then \sqrt and a space gives √ in normal text. For arrows beyond the few on this page, see the full list of arrow symbols. Greek and accented letters for names are on the letters page.