Gram-Schmidt Calculator

Enter 2 or 3 vectors to compute an orthogonal and orthonormal basis using the Gram-Schmidt process, with full step-by-step working.

Input Vectors

Enter your vectors and click Calculate to see results.

Summary

Enter 2 or 3 vectors to compute an orthogonal and orthonormal basis using the Gram-Schmidt process, with full step-by-step working.

How it works

  1. Select the dimension (2D or 3D) and the number of vectors (2 or 3).
  2. Enter the components of each input vector.
  3. Click "Calculate" to run the Gram-Schmidt process.
  4. The tool computes each orthogonal vector by subtracting projections of previous basis vectors.
  5. Each orthogonal vector is then divided by its norm to produce an orthonormal unit vector.
  6. Step-by-step working is displayed so you can verify every intermediate value.

Use cases

  • Linear algebra homework and exam preparation.
  • Computing an orthonormal basis for QR decomposition.
  • Verifying manual Gram-Schmidt calculations.
  • Understanding vector projection and orthogonality concepts.
  • Machine learning feature orthogonalization.
  • Physics and engineering problems requiring orthonormal frames.

Frequently Asked Questions

Last updated: 2026-06-11 · Reviewed by Nham Vu