Absolute Value Symbol Tool
|x|

Pick a style — click to use & copy

Shortcodes

Quick reference codes for the | Vertical Bar / Absolute Value Symbol.

UnicodeU+007C
Alt Code124
HTML Code|
CSS Code\007C
HTML Entity|
HEX Code|

About the Absolute Value Symbol

The absolute value of a number is its distance from zero on the number line, always a non-negative result. It is written by placing the number or expression between two vertical bars: |x|. For example |−5| = 5 and |3| = 3. The vertical bar character (|, U+007C) is a standard ASCII symbol typed with Shift+\ on most keyboards. The dedicated math character ∣ (U+2223) is also used in formal typesetting. In calculus and analysis the absolute value generalises to the modulus of a complex number: |a + bi| = √(a² + b²). The double vertical bar ‖x‖ (U+2016) denotes the norm of a vector in linear algebra. The floor function ⌊x⌋ and ceiling function ⌈x⌉ use similar bracket notation to round down or up respectively. In programming, the single pipe | is the bitwise-OR operator and || means logical OR. Use | or | in HTML.

Customize Your Symbol

px
#111827
#f3f4f6
px
/ px
|
Copied!

The absolute value symbol is one of the most basic mathematical symbols used in algebra, arithmetic, graphing, equations, programming, and calculators. It represents the distance of a number from zero, regardless of direction.

The absolute value symbol looks like this:

| |

Example:

|-5| = 5

People often search for absolute value keyboard shortcuts, absolute value in Word, formulas, and examples because it is heavily used in mathematics and graphing systems.

What Is the Absolute Value Symbol?

The absolute value symbol uses two vertical bars around a number or expression.

Standard Absolute Value Symbol

|x|

It means:

  • Distance from zero
  • Ignoring positive or negative signs

Absolute Value Symbol Copy Paste

Basic Symbols

| |

Example Expressions

|5|
|-10|
|x|
|a+b|

Absolute Value Symbol Meaning

Absolute value always gives a non-negative result.

Examples:

|5| = 5

|-5| = 5

Both answers are positive because absolute value measures distance from zero.

Absolute Value Symbol in Math

Absolute value is widely used in mathematics.

Main Uses

TopicUsage
AlgebraEquations
GeometryDistance
GraphingV-shaped graphs
StatisticsError values
CalculusPiecewise functions

Absolute Value Formula

Mathematical definition:

|x| = \begin{cases}x,&x\ge0\-x,&x<0\end{cases}

Meaning:

  • Keep x the same if x ≥ 0
  • Remove the negative sign if x < 0

Absolute Value Examples

Example 1

|-8| = 8

Example 2

|12| = 12

Example 3

|-3 + 1| = 2

Absolute Value Symbol on Keyboard

The vertical bar character is used for absolute value.

Keyboard Symbol

|

How to Type Absolute Value Symbol

Windows Keyboard

Press:
Shift + \

Result:
|

Mac Keyboard

Press:
Shift + \

Result:
|

Absolute Value Symbol in Word

In Microsoft Word, typing absolute value is simple.

Method 1: Keyboard

Type:

|x|

using:
Shift + \

Method 2: Equation Editor

Example:

|x+2|

Absolute Value Symbol in Excel

In Microsoft Excel, absolute values use the ABS function.

Formula Example

ABS(-25)=25

Excel Syntax

=ABS(number)

Example

=ABS(-100)

Result:
100

Absolute Value Symbol in Desmos

Desmos uses absolute value for graphing equations.

Desmos Example

genui{“math_block_widget_always_prefetch_v2”:{“content”:”y = |x|”}}

This creates a V-shaped graph.

Absolute Value Graph Shape

Absolute value equations usually form a:

  • V-shape

This happens because both positive and negative inputs become positive outputs.

Absolute Value Equation Examples

Linear Absolute Value

genui{“math_block_widget_always_prefetch_v2”:{“content”:”y = |x-3|”}}

Complex Example

|2x-5| = 9

Difference Between Square Root and Absolute Value

People often confuse these symbols.

SymbolName
Square root
x

Square Root Symbol

Absolute Value vs Square Root

FeatureAbsolute ValueSquare Root
Symbolx
MeaningDistance from zeroRoot value
Negative OutputNeverSometimes undefined

Absolute Value Symbol Unicode

SymbolUnicode

HTML Code for Absolute Value Symbol

Vertical Bar HTML

|

Result:

|

Different Uses of Absolute Value Symbol

FieldUsage
AlgebraEquations
StatisticsError measurement
ProgrammingConditions
GraphingV-shaped functions

Absolute Value in Real Life

Absolute value helps measure:

  • Distance
  • Errors
  • Temperature changes
  • Financial differences
  • Speed changes

Absolute Value Properties

Always Non-Negative

|x| \ge 0

Product Property

|ab| = |a||b|

Quotient Property

\left|\frac{a}{b}\right| = \frac{|a|}{|b|}

Common Absolute Value Examples

Basic Values

|7| = 7

|-7| = 7

Variable Examples

|x|
|a-b|

Importance of Absolute Value

Absolute value is important because it simplifies distance and magnitude calculations.

Main importance:

  • Distance measurement
  • Graphing
  • Error analysis
  • Programming calculations

Frequently Asked Questions

What is the absolute value symbol?

| |

What does absolute value mean?

Distance from zero regardless of sign.

How do you type the absolute value symbol?

Press:
Shift + \

What is the absolute value formula?

|x| = \begin{cases}x,&x\ge0\-x,&x<0\end{cases}

What is the ABS formula in Excel?

=ABS(number)

What shape does the graph form?

A V-shape.

How is absolute value used in Desmos?

Example:

genui{“math_block_widget_always_prefetch_v2”:{“content”:”y = |x|”}}

What is the difference between √ and |x|?

√ is for square roots, while |x| represents absolute value.

Conclusion

The absolute value symbol is one of the most important mathematical symbols used in algebra, graphing, equations, statistics, engineering, and programming. Whether calculating distances from zero, graphing V-shaped equations, or using Excel ABS formulas, absolute value plays a major role in mathematics and science.

From keyboard shortcuts and Word typing methods to Desmos graphing and mathematical properties, understanding the absolute value symbol helps improve calculations, problem-solving, and technical learning.

Contents hide
Premium Footer