QR Decomposition Calculator
Factor a matrix as A = QR with Q orthogonal and R upper triangular.
Factor a matrix as A = QR with Q orthogonal and R upper triangular.
Results
Enter your details and click Calculate to see your results.
About This Calculator
Type the matrix row by row: separate rows with semicolons (or new lines) and entries with spaces or commas — e.g. 1 2; 3 4 is the 2 × 2 matrix [[1, 2], [3, 4]]. Up to 10 × 10. QR is used for least squares (solve Rx = Qᵀb) and the QR eigenvalue algorithm.
Example
Example: R = [ 5.91608 7.43736 ] [ 0 0.828079 ] [ 0 0 ]
Assumptions
Householder reflections (mathjs qr).
Frequently Asked Questions
How does QR relate to Gram-Schmidt?
The columns of Q are Gram-Schmidt applied to the columns of A.
Related Calculators
About the Author

Imran Hossain
Professional SEO, Digital Marketer Specialist
I am a Certified Google Ads Expert And Professional SEO, Digital Marketing Specialist
View full profile