Linear Algebra & Matrices

Vector Magnitude Calculator

Find a vector’s Euclidean length while preserving its exact squared magnitude.

Linear Algebra & Matrices

Enter vector components

Exact rational arithmetic
Vector a

Use ordinary signed decimals. Fractions, commas, and scientific notation are not accepted in this first batch.

Exact result

Enter valid values to see the result.

Your entries are calculated in this browser and are not submitted to 365CALCS.COM.

Quick guide

How to use this calculator

  1. Choose the number of components.
  2. Enter every signed component.
  3. Read an exact rational length when possible or a labelled approximation.

Calculation method

Square, add, and take the non-negative root

The squared magnitude is a · a. Its principal square root is exact only when the reduced numerator and denominator are both perfect squares.

Worked example

Length of a 3–4 vector

The squared magnitude of ⟨3,4⟩ is 9 + 16.

‖a‖ = √25 = 5

Supported inputs

Precision and limits

Vector size

General vectors may contain 2–8 components; three-dimensional products require exactly three.

Entry precision

Each signed decimal may contain up to 30 digits and 15 decimal places.

Square roots

Squared magnitudes remain exact. Irrational roots and normalized components are explicitly labelled approximations.