Gram-Schmidt Calculator screenshot

Gram-Schmidt Calculator

Work out an orthogonal and an orthonormal basis from a list of vectors from vectors, one per row. Vₖ = uₖ − Σ (uₖ·vⱼ ÷ vⱼ·vⱼ) vⱼ; qₖ = vₖ ÷ ‖vₖ‖, and the page prints the substitution so the result can be checked by hand.

Privacy First
0 Runs
Updated 2026-11-22
Runs in your browser
No sign-up, no upload
Formula printed with the answer

Gram-Schmidt Calculator

Work out an orthogonal and an orthonormal basis from a list of vectors from vectors, one per row. Vₖ = uₖ − Σ (uₖ·vⱼ ÷ vⱼ·vⱼ) vⱼ; qₖ = vₖ ÷ ‖vₖ‖, and the page prints the substitution so the result can be checked by hand.

How this page computes

Vₖ = uₖ − Σ (uₖ·vⱼ ÷ vⱼ·vⱼ) vⱼ; qₖ = vₖ ÷ ‖vₖ‖

The orthogonal vectors are exact fractions. A normalised vector is exact only when its norm is a rational square; otherwise the row prints as decimals and says so.

The output keeps the unnormalised basis as well, because it is the part that is always exact.

The calculation runs entirely in this browser tab; nothing is uploaded.

Gram-Schmidt Calculator computes an orthogonal and an orthonormal basis from a list of vectors. Vₖ = uₖ − Σ (uₖ·vⱼ ÷ vⱼ·vⱼ) vⱼ; qₖ = vₖ ÷ ‖vₖ‖. The page prints the rule, the numbers substituted into it and the result, so the arithmetic can be checked by hand.

The orthogonal vectors are exact fractions. A normalised vector is exact only when its norm is a rational square; otherwise the row prints as decimals and says so. Pressed with vectors, one per row 1 1 0; 1 0 1, it answers: v1 = [ 1 1 0 ]

How to use Gram-Schmidt Calculator

Enter vectors, one per row 1 1 0; 1 0 1, then press Run: the page evaluates an orthogonal and an orthonormal basis from a list of vectors and prints every line of the working. Typed input is read exactly as written, and a blank field is refused with its name.

Read the first line as the answer and the lines below it as the substitution. If a value is out of range the page refuses it by field and reason instead of printing a number.

With vectors, one per row 1 1 0; 1 0 1, the answer is v1 = [ 1 1 0 ].

Exact until a norm

The orthogonal vectors are exact fractions. A normalised vector is exact only when its norm is a rational square; otherwise the row prints as decimals and says so.

The output keeps the unnormalised basis as well, because it is the part that is always exact.

What to Expect

Best for

  • Working out an orthogonal and an orthonormal basis from a list of vectors without a spreadsheet
  • Checking a figure someone else quoted
  • Seeing the formula behind an answer

Not ideal for

  • A vector that is a combination of the earlier ones is refused, because the list is dependent and has no basis of the same length.
  • A quantity the page cannot compute, which it refuses instead of estimating
  • Rounding an answer that has an exact form

What this tool keeps

  • Vₖ = uₖ − Σ (uₖ·vⱼ ÷ vⱼ·vⱼ) vⱼ; qₖ = vₖ ÷ ‖vₖ‖
  • Every input exactly as typed

What may need cleanup

  • Nothing: the printed answer is the final output
  • A unit conversion, if the inputs were entered in different units

Common errors

  • A vector that is a combination of the earlier ones is refused, because the list is dependent and has no basis of the same length.
  • An empty field is refused with the field's name

Example use cases

  • Work out an orthogonal and an orthonormal basis from a list of vectors for one set of inputs
  • Check the result against the formula by hand
  • See which input the answer is most sensitive to

Sample input

Gram-Schmidt Calculator: vectors, one per row 1 1 0; 1 0 1

Sample output

v1 = [ 1 1 0 ] — v2 = [ 1/2 -1/2 1 ]

Who this is for

  • Students checking a formula
  • Anyone who needs the number and the working

Frequently asked questions

What formula does this page use?

Vₖ = uₖ − Σ (uₖ·vⱼ ÷ vⱼ·vⱼ) vⱼ; qₖ = vₖ ÷ ‖vₖ‖. The page prints the substitution as well, so the answer can be checked against the rule.

What does Gram-Schmidt Calculator refuse?

A vector that is a combination of the earlier ones is refused, because the list is dependent and has no basis of the same length.

What does the default example give?

Vectors, one per row 1 1 0; 1 0 1 gives v1 = [ 1 1 0 ]. Every line below that restates the same arithmetic.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.