Search the complete library

What do you want to learn or calculate?

Quick linksAll calculatorsMath subjectsPractice questionsFormula library
← Back to calculators

Unit Vector Calculator

Solve unit vector problems with clear steps, notation, and a final check.

Calculate without using AI.

Evaluate the governing formula locally in your browser. Define each known quantity once, then change values to test another case instantly.

Local result

Choose an example or enter a formula.

Show your work Step-by-step method
  1. No account, AI request, or paid token is used.

Recent calculations

No calculations yet.

Vectors

Unit Vector Calculator explained

The short version

  • A unit vector points the same way as the original but has a length of exactly 1.
  • You get it by dividing every component by the vector's own length.
  • Because its length is 1, a unit vector carries direction and nothing else.

The formula this page uses

û = v / |v|, where |v| = √(v₁² + v₂² + v₃²)

What each part means

SymbolWhat it means
v — The original vectorIts components can be any units: metres, newtons, or plain numbers.
|v| — MagnitudeThe length of v, always positive, in the same unit as the components.
û — Unit vectorSame direction, length 1, and no unit at all because the units cancel in the division.
cos α, cos β, cos γ — Direction cosinesThe three components of û. Each is the cosine of the angle between v and one axis.

Show your work: a full example

  1. The vectorv = (3, −6, 6)
  2. Square each component3² = 9, (−6)² = 36, 6² = 36
  3. Add and take the square root|v| = √(9 + 36 + 36) = √81 = 9
  4. Divide every component by 9û = (3/9, −6/9, 6/9)
  5. Simplifyû = (1/3, −2/3, 2/3) ≈ (0.3333, −0.6667, 0.6667)
  6. Check the length is 1√(1/9 + 4/9 + 4/9) = √(9/9) = √1 = 1
  7. Read the direction anglescos α = 1/3 gives α = 70.53° from the x-axis, and cos γ = 2/3 gives γ = 48.19° from the z-axis

A second, different case

  1. A different case: a 2D vector and its compass anglev = (−5, 12)
  2. Magnitude√(25 + 144) = √169 = 13
  3. Unit vectorû = (−5/13, 12/13) ≈ (−0.3846, 0.9231)
  4. Find the angle from the positive x-axisθ = 112.62°, in the second quadrant because x is negative and y is positive
  5. Confirm from the angle(cos 112.62°, sin 112.62°) = (−0.3846, 0.9231), matching û exactly
  6. Now try the zero vectorv = (0, 0, 0) has |v| = 0
  7. The division fails0/0 is undefined, so the zero vector has no unit vector and no direction
Copy-ready example

v = (3, −6, 6)

The vector

Vectors, their lengths, and the unit vector that comes out

Vector v|v|Unit vector û
(3, 4)5(0.6, 0.8)
(−5, 12)13(−0.3846, 0.9231)
(1, 1)√2 ≈ 1.4142(0.7071, 0.7071)
(2, 3, 6)7(0.2857, 0.4286, 0.8571)
(3, −6, 6)9(0.3333, −0.6667, 0.6667)
(1, 0, 0)1(1, 0, 0), already a unit vector
(0, 0, 0)0undefined, there is no direction to keep

Three mistakes to check for

What students writeWhy it's wrongDo this instead
û = (3, −6, 6) / 9 = (0.333, −6, 6)Only the first component was divided. The division applies to every component.û = (3/9, −6/9, 6/9) = (0.3333, −0.6667, 0.6667).
|v| = 3 + (−6) + 6 = 3Components were added instead of squared, added and rooted, so the sign cancellation destroys the length.√(9 + 36 + 36) = 9.
Rounding û to (0.33, −0.67, 0.67) and using it in later workIts length is 1.0033, not 1, and that error compounds through every dot product afterwards.Keep the exact fractions 1/3, −2/3, 2/3, or carry at least six decimals.

Questions about the Unit Vector Calculator

What is a unit vector actually for?

It separates direction from size. A force of 90 N along (3, −6, 6) is just 90 × û, and a directional derivative needs the direction alone with the length stripped out, which is exactly what û supplies.

What are direction cosines?

They are the three components of û, and each one is the cosine of the angle between v and an axis. For (3, −6, 6) they are 1/3, −2/3 and 2/3, giving axis angles of 70.53°, 131.81° and 48.19°. Their squares always add to 1.

Does the zero vector have a unit vector?

No. Its length is 0, and dividing by 0 has no answer. That matches the geometry: the zero vector has no direction to preserve, so any code doing this needs a guard before it divides.

Is a unit vector the same thing as a normalized vector?

Yes, they are two words for the identical object. 'Unit vector' names the result and 'normalize' names the action of producing it, which is why i, j and k are the standard unit vectors along the three axes.

Where to go next

Continue from this result

Turn one calculation into understanding.

Compare another tool, review the underlying idea, then solve a fresh problem without copying the example.