The formula this page uses
v̂ = v / |v| to reach length L instead: v_L = L · (v / |v|)
Solve normalize vector problems with clear steps, notation, and a final check.
Evaluate the governing formula locally in your browser. Define each known quantity once, then change values to test another case instantly.
Choose an example or enter a formula.
No calculations yet.
v̂ = v / |v| to reach length L instead: v_L = L · (v / |v|)
The vector
Yes, they are the same operation. Normalize describes the action and unit vector describes the result, so v̂ = (0.8, −0.6) is both the normalized form of (4, −3) and its unit vector.
Normalize first, then multiply by whatever length you want. (4, −3) normalizes to (0.8, −0.6), and multiplying by 10 gives (8, −6). Doing it in one step means multiplying by L/|v|, which is 10/5 = 2 here.
It throws away the magnitude and keeps the direction. If the original 90 N force mattered, store |v| = 5 separately before dividing, because the normalized vector alone cannot tell you how strong the force was.
Lighting maths assumes surface normals and light directions have length 1, so the dot products come out as plain cosines. Similarly, comparing text documents by cosine similarity only works once each feature vector has been rescaled to length 1.