Example 1
- x: 3
- y: 4
- z: (empty)
5
What is ‖(3, 4)‖? 5 (3-4-5).
Enter coordinates x and y. The calculator computes the Euclidean norm ‖v‖ = √(x² + y²). Vector (3, 4) has length 5; (5, 12) is 13. Optional z switches to √(x²+y²+z²) — (3, 4, 12) is also 13. Empty z is 2D mode, not z = 0. This is not the distance between two arbitrary points and not |x| on the line.
Enter x and y (and z if you need 3D).
Length is always non-negative. Empty z means 2D, not zero in z.
Vector length is the Euclidean norm ‖v‖ = √(Σi vi²) — the distance from the origin to the point whose coordinates are the vector’s components. In the plane: |v| = √(x² + y²). In space: |v| = √(x² + y² + z²). This is the textbook linear-algebra standard (e.g. Strang, Introduction to Linear Algebra; Axler, Linear Algebra Done Right; MathWorld — Vector Norm), not an invented index.
The calculator uses the numbers you enter: coordinates x and y plus optional z. Empty z means 2D mode, not z = 0. With (3, 4) you get √(9+16) = 5. With (5, 12) — 13. With (1, 2, 2) — 3. A minus in a component does not shorten the length: (−3, 4) is still 5.
Link to Pythagoras. In 2D the formula is the Pythagorean theorem for legs |x| and |y|. In 3D you can take √(x²+y²) in the xy-plane, then √(that² + z²) — or one root of three squares. The neighbouring Pythagoras calculator starts from triangle sides; this calculator starts from coordinates.
Unit vector. When ‖v‖ ≠ 0, the panel also shows û = v/‖v‖ of length 1. The zero vector has length 0 and no unit direction — the calculator states that plainly. The sum of squares and hypot serve as a numeric check.
What this calculator does not compute. It does not compute a dot product, an angle between vectors, or the distance between two arbitrary points (that is a separate calculator). The diagram draws an arrow from the origin; length comes from the formula, not pixel scale.
Worked examples on the page: (3, 4) → 5; (5, 12) → 13; (1, 2, 2) → 3; (0, 0) → 0; (−3, 4) → 5; (3, 4, 12) → 13. “Fill this example” writes those same numbers into the fields.
2D: ‖v‖ = √(x² + y²)
3D: ‖v‖ = √(x² + y² + z²)
In general: ‖v‖₂ = √(Σ vᵢ²). Mathematical model: Euclidean (ℓ₂) norm. Computation: √ of the sum of squares; hypot as a check.
Let v = (v₁, …, vₙ) be a vector in Euclidean space ℝⁿ with the standard inner product ⟨u, v⟩ = Σ uᵢvᵢ. The Euclidean norm (vector length) is ‖v‖₂ = √⟨v, v⟩ = √(Σᵢ vᵢ²). For n = 2 we write ‖v‖ = √(x² + y²); for n = 3 ‖v‖ = √(x² + y² + z²). This calculator covers exactly those two cases: fields x and y are required; field z is optional.
Geometrically ‖v‖ is the Euclidean distance from the origin O to the point whose coordinates equal the components of v. Algebraically it is the square root of the sum of squared components — always a non-negative real. The equality ‖v‖ = 0 holds if and only if v is the zero vector.
Length of a segment in a coordinate system belongs to Cartesian geometry (Descartes, La Géométrie, 1637) and the Pythagorean theorem. The formal view of a norm as √⟨v, v⟩ arrives with modern linear algebra in the nineteenth and twentieth centuries (Cauchy, Grassmann, Peano; later Hilbert for function spaces). Textbook notation ‖·‖₂ stresses that this is the ℓ₂ norm — one member of the ℓₚ family.
Conceptually, vector length is not “the absolute value of one number” (that is a separate |x| calculator) but the generalization of that idea to many components. In physics ‖v‖ is the magnitude of velocity or force; in graphics, the length of a displacement; in machine learning, the scale of a feature vector before normalization. Across those contexts the Euclidean-norm formula is the same.
The Euclidean norm satisfies the norm axioms on ℝⁿ: (1) ‖v‖ ≥ 0 and ‖v‖ = 0 ⇔ v = 0; (2) ‖αv‖ = |α|·‖v‖ for scalars α; (3) the triangle inequality ‖u+v‖ ≤ ‖u‖+‖v‖. Cauchy–Schwarz |⟨u, v⟩| ≤ ‖u‖‖v‖ also holds, and yields the angle via cos θ = ⟨u, v⟩/(‖u‖‖v‖) when u, v ≠ 0.
The norm is invariant under orthogonal isometries: if Q is orthogonal (QᵀQ = I), then ‖Qv‖ = ‖v‖. Homogeneity under coordinate scaling: scaling every component by k multiplies length by |k|. Domain: x, y ∈ ℝ (and z ∈ ℝ in 3D mode); range [0, ∞).
Step 1 (2D). Point P = (x, y) and origin O = (0, 0) form segment OP. Axis projections have lengths |x| and |y|. Pythagoras in the right triangle with those legs gives OP = √(x² + y²).
Step 2 (3D). First the length of the projection onto the xy-plane is r = √(x² + y²). Then in the plane containing the z-axis and that projection, Pythagoras again yields ‖v‖ = √(r² + z²) = √(x² + y² + z²).
Step 3 (inner product). By definition ⟨v, v⟩ = x² + y² (+ z²). The norm induced by that product is √⟨v, v⟩, matching steps 1–2. The same object generalises in functional analysis to Hilbert space.
Step 4 (unit vector). If ‖v‖ ≠ 0, û = v/‖v‖ satisfies ‖û‖ = 1 and points in the same direction as v. The calculator computes √(x·x+y·y(+z·z)) and cross-checks with hypot(…).
Vector (3, 4): √(9+16) = 5. Vector (5, 12): 13. Vector (8, 15): 17. Vector (6, 8): 10 = 2·5. Vector (−3, 4): still 5. Vector (0, 0): 0. Vector (1, 2, 2): √(1+4+4) = 3. Vector (3, 4, 12): √(9+16+144) = 13. Vector (1, 0): 1 — length of the x-axis unit vector.
When z is empty, the calculator does not silently insert zero: the 2D formula applies. When you enter z = 0, √(x²+y²+0) equals the 2D length numerically, but the panel dimension shows 3 — because you are deliberately working in ℝ³.
The calculator uses √ of the sum of squares and hypot as a check. hypot is usually better conditioned for extremely large or small components (it avoids intermediate overflow of x·x). For typical school examples (3, 4), (5, 12) both paths agree in floating-point arithmetic.
Comma and period are equivalent in the fields. Missing x or y blocks the result. The calculator does not force a fake fixed digit count — Intl.NumberFormat shows sensible precision, and integers (5, 13) stay clean.
Scale caveat: very large |x|, |y| can overflow the floating-point range with a naive x·x; hypot mitigates that. Very small components near zero can yield a near-zero length — that is a correct result, not an error.
Related models: absolute value |x| (the norm on ℝ¹), distance between two points, the Pythagorean theorem, Manhattan norm ‖v‖₁ = Σ|vᵢ| and max norm ‖v‖∞ = max|vᵢ| (this calculator computes only ‖·‖₂). Dot product and angle between vectors need two vectors — they are not on this calculator.
Sources: Strang, Introduction to Linear Algebra; Axler, Linear Algebra Done Right; Anton & Rorres, Elementary Linear Algebra; MathWorld — Vector Norm / Euclidean Norm; Wikipedia — Euclidean norm; NIST / analytic-geometry texts (Pythagoras in coordinates). The calculator is educational.
‖v‖ is the Euclidean norm. For (3, 4) it equals 5. The panel also shows the sum of squares and the unit vector.
5
What is ‖(3, 4)‖? 5 (3-4-5).
13
What is ‖(5, 12)‖? 13.
3
What is ‖(1, 2, 2)‖? 3.
0
What is ‖(0, 0)‖? 0 (zero vector).
5
What is ‖(−3, 4)‖? 5 (squares drop the sign).
13
What is ‖(3, 4, 12)‖? 13.
The length (Euclidean norm) of a vector v is ‖v‖ = √(Σ v_i²). In the plane ‖v‖ = √(x²+y²); in space √(x²+y²+z²). The result is always non-negative and equals the distance from the origin to the point with those coordinates.
The result is 5, because √(9+16) = √25 = 5. That is the same length as the hypotenuse of a 3-4-5 right triangle. The first example on this page fills the same coordinates.
The result is 13, because 25+144 = 169 and √169 = 13. That is the classic 5-12-13 Pythagorean triple.
When you work in ℝ³. In the plane leave z empty — empty z means 2D mode, not z = 0. If you want (3, 4, 0), enter 0 in z on purpose. Example (1, 2, 2) gives 3.
Yes. The norm squares the components, so the sign does not shorten the length: (−3)²+4² = 9+16 = 25, √25 = 5.
The result is 0. The zero vector has zero length. Entered zeros count; an empty x or y field means missing data and nothing computes.
Here the inputs are vector coordinates (x, y) or (x, y, z). On the Pythagoras calculator you choose which triangle side to solve for and enter two known sides. The square root is the same; the input path differs.
Vector length is the distance from the origin to (x, y) or (x, y, z). Distance between two points computes √((x₂−x₁)²+(y₂−y₁)²) between arbitrary endpoints — on the neighbouring calculator.
No. Empty z means 2D mode. Zeros in x and y are deliberate components. You must enter zero in z if you want the vector (x, y, 0) in ℝ³.
(3, 4, 12) is 13, because 9+16+144 = 169. (8, 15) in the plane is 17, because 64+225 = 289. (6, 8) is 10 — a doubled (3, 4).
No. This calculator only returns the length ‖v‖. The side ratio 3/5 = 0.6 belongs to the sine calculator in sides mode. Here (3, 4) yields 5.
No. The result depends only on coordinates x, y and optional z. The currency and unit settings in the page header do not affect this result.
In the plane: ‖v‖ = √(x² + y²). In space: √(x² + y² + z²). For (3, 4) the result is 5; for (3, 4, 12) it is 13.
13. √(9+16+144) = √169 = 13. That is the sixth example on this page.
10. √(36+64) = √100 = 10 — a doubled (3, 4), same norm √(x²+y²).
v/‖v‖ when ‖v‖ ≠ 0. The panel shows it after the length is computed. For the zero vector the unit vector is undefined.
The formula √(a²+b²) matches |a+bi|, but here the fields are vector coordinates, not real and imaginary parts in complex notation.
The formula, domain, and derivation below come from recognized linear-algebra sources.
Page updated November 3, 2026.