← ← All Tools

🧮 Matrix Calculator

Local matrix calculator with multi-matrix expressions, exact fraction arithmetic, step-by-step teaching, LU/QR/Cholesky decompositions, 2×2/3×3 eigenvalues, and Excel/CSV/MATLAB/NumPy/LaTeX paste. No login, default no ad scripts, no upload.

Local computation · No upload · No login · Default no ad scripts · Default no third-party analytics

Matrix Editor

Rows 3
Cols 3
Paste from Excel / CSV / MATLAB / NumPy / LaTeX

Quick Operations

Multi-matrix Expression

Examples

Linear System Ax = b

Display Format

Result

Click an operation button or press "Compute" to see results.

FAQ

What's the difference between fraction and decimal mode?

Fraction mode uses BigInt numerator/denominator for exact arithmetic, so `1/3 + 2/3 = 1` exactly. Decimal mode uses float64 and is required for square roots, trigonometric values, eigenvalues, or any irrational number. The tool automatically downgrades to float when necessary and shows a condition-number warning.

What matrix sizes are supported?

V1 supports 1×1 to 20×20. Larger matrices (including general eigenvalues and SVD) are planned for V2 via Web Worker.

Why only 2×2 and 3×3 eigenvalues?

For n≤3 the characteristic polynomial has closed-form solutions (quadratic formula / Cardano cubic), which are numerically stable and expose the exact polynomial. n≥4 requires Hessenberg reduction + shifted QR iteration, planned for V2.

How do I paste from Excel or MATLAB?

Expand the "Paste from Excel..." section below the matrix editor, paste your data, then click "Parse into current slot". Excel tab-separated, CSV comma-separated, MATLAB `[1 2; 3 4]`, NumPy `[[1,2],[3,4]]`, LaTeX pmatrix/bmatrix, and Wolfram `{{1,2},{3,4}}` are all auto-detected.

Is the share link safe?

The share link encodes the current matrix slots and expression into the URL `#hash` fragment. Fragments after `#` are not included in HTTP requests by browsers (native behavior); they are visible only to whoever you hand the link to. Scoped to browser-side processing.

Local matrix calculator supporting multi-matrix expressions (e.g. A*B + 2*C^T - inv(D)), exact fraction arithmetic, determinant, inverse, transpose, rank, trace, RREF, null space, column space, linear systems (Gauss-Jordan / Cramer's rule), LU decomposition, QR decomposition, Cholesky decomposition, 2×2/3×3 eigenvalues with characteristic polynomial, step-by-step teaching mode (row operations annotated), multi-format paste (Excel/CSV/MATLAB/NumPy/LaTeX/Wolfram), shareable URL, mobile-friendly (44px touch targets, arrow navigation between cells). BigInt numerator/denominator exact arithmetic avoids float64 rounding errors. Ideal for linear-algebra coursework, engineering calculations, homework verification. No upload, no login, default no ad scripts, default no third-party analytics — input data is not uploaded by the tool.