Gram-Schmidt Calculator

Use Gram Schmidt orthogonalization to find an orthonormal basis for the span of a set of vectors.

Result
—

How to calculate

Subtract the projections onto earlier orthogonal vectors, skip any zero residuals, and divide each remaining vector by its length.

Worked example

Use Vectors as rows 3, 4 / -4, 3. The result is [3/5, 4/5]; [-4/5, 3/5].

Input and result notes

Enter one row per line and separate values with commas or spaces. Use up to eight rows and eight columns. Fractions and decimals are supported.

MIT on Gram Schmidt and orthogonal matrices

Related calculators