Algebra • 3D Simultaneous Linear Systems (3x3)

Linear System Solver (3 Variables)

Solve three-variable systems in x, y, and z with exact RREF row-operation matrices, 3x3 Cramer determinants, interactive 3D plane projection, and full equation verification.

|
Last Updated: November 2026
|
Verified Accurate: RREF, Cramer & 3D Projection
Examples:

System of 3 Linear Equations

Standard form: ax + by + cz = d

Unique Solution
Equation 1
x +
y +
z =
Equation 2
x +
y +
z =
Equation 3
x +
y +
z =
x Solution
1
Exact: 1
y Solution
1
Exact: 1
z Solution
1
Exact: 1

3D Coordinate Projection & Planes

Drag to rotate the 3D bounding box showing plane normals and solution point (x, y, z)

D = -14 | Dx = -16 | Dy = -22 rank(A) = rank([A|b])

Step-by-Step Derivation

Direct Answer & Overview
Verified Educational Guide

How 3-Variable Linear Systems Are Solved

A 3x3 linear system of three planes a₁x + b₁y + c₁z = d₁, a₂x + b₂y + c₂z = d₂, and a₃x + b₃y + c₃z = d₃ intersects at a unique point (x, y, z) whenever its 3x3 determinant D = det(A) != 0. Gaussian elimination reduces [A | d] to the identity matrix in exact steps, while Cramer’s Rule evaluates x = Dx/D, y = Dy/D, and z = Dz/D.

Primary Mathematical Formula Matrix & 3x3 Cramer Determinant Form
Standard Equation
ƒ(x)
Q.E.D.
Ax=d  ⟹  x=DxD,  y=DyD,  z=DzD(D=det⁡(A)≠0)A\mathbf{x} = \mathbf{d} \implies x = \frac{D_x}{D}, \; y = \frac{D_y}{D}, \; z = \frac{D_z}{D} \quad (D = \det(A) \neq 0)
Handles unique vertices, intersecting hinges, planes, and prism inconsistencies
Exact Formula
Input Parameters
Required
1
Equations 1–3 — Coefficients (aᵢ, bᵢ, cᵢ) defining the normal vector of each plane
2
Constant Vector d — Right-hand constants (d₁, d₂, d₃) fixing plane offsets from the origin
Expected Outputs
Calculated
Solution Triple (x, y, z) — Exact simplified fractions alongside 6-digit decimal coordinates
3x3 Determinants & Ranks — Cofactor determinants D, Dx, Dy, Dz and matrix ranks rank(A), rank([A|d])
Interactive 3D View — Drag-to-rotate 3D projection box plus step-by-step RREF row matrices
Worked Numerical Example
Instant Verification
Solve 2x + 3y − z = 5, x − 2y + 2z = 4, and 3x + 2y + z = 10.
→ Adding Eq 1 + Eq 3 gives 5x + 5y = 15 (x + y = 3); combining 2·Eq 1 + Eq 2 gives 5x + 4y = 14, yielding x = 2, y = 1, and z = 2.
Result: x = 2, y = 1, z = 2 | D = −5, residual error = 0

Algebraic Form and 3D Geometry of Three Planes

Each linear equation in three unknowns ax+by+cz=dax + by + cz = d defines a flat geometric plane in three-dimensional Euclidean space R3\mathbb{R}^3, oriented perpendicular to the normal vector n=⟨a,b,c⟩\mathbf{n} = \langle a, b, c \rangle. Solving a simultaneous system of three linear equations locates every spatial point (x,y,z)(x, y, z) shared by all three planes at once:

{a1x+b1y+c1z=d1a2x+b2y+c2z=d2a3x+b3y+c3z=d3⟺[a1b1c1a2b2c2a3b3c3][xyz]=[d1d2d3]\begin{cases} a_1 x + b_1 y + c_1 z = d_1 \\ a_2 x + b_2 y + c_2 z = d_2 \\ a_3 x + b_3 y + c_3 z = d_3 \end{cases} \quad \Longleftrightarrow \quad \begin{bmatrix} a_1 & b_1 & c_1 \\ a_2 & b_2 & c_2 \\ a_3 & b_3 & c_3 \end{bmatrix} \begin{bmatrix} x \\ y \\ z \end{bmatrix} = \begin{bmatrix} d_1 \\ d_2 \\ d_3 \end{bmatrix}

Whereas two lines in a 2D plane (handled by our 2-variable linear system solver) can only intersect, run parallel, or coincide, adding a third dimension expands the structural possibilities dramatically. Two non-parallel planes meet along an infinite straight line; intersecting that line with a third plane typically pierces it at one unique coordinate (x,y,z)(x, y, z), unless the third plane runs parallel to or contains the entire hinge line.

Gaussian Elimination and Reduced Row Echelon Form

The most dependable and scalable algorithm for solving 3×33 \times 3 linear systems is Gauss–Jordan elimination. First assemble the 3×43 \times 4 augmented matrix [A∣d][A \mid \mathbf{d}], then apply the three reversible elementary row operations—swapping two rows, scaling a row by a nonzero scalar, and subtracting a multiple of one row from another—which leave the geometric intersection of the planes completely unchanged.

[a1b1c1d1a2b2c2d2a3b3c3d3]→RREF[100x010y001z]\left[ \begin{array}{ccc|c} a_1 & b_1 & c_1 & d_1 \\ a_2 & b_2 & c_2 & d_2 \\ a_3 & b_3 & c_3 & d_3 \end{array} \right] \xrightarrow{\text{RREF}} \left[ \begin{array}{ccc|c} 1 & 0 & 0 & x \\ 0 & 1 & 0 & y \\ 0 & 0 & 1 & z \end{array} \right]

When AA is invertible, row reduction marches systematically down the leading pivots until the left block becomes the 3×33 \times 3 identity matrix I3I_3, allowing you to read (x,y,z)(x, y, z) directly from the final column. If you want to practice textbook elimination without matrix notation or inspect larger dimensions, explore our Gaussian elimination solver, row echelon form calculator, and elimination method calculator.

Cramer’s Rule and 3×3 Determinant Expansion

Using cofactor expansion along Row 1 (or the Rule of Sarrus), the determinant of the 3×33 \times 3 coefficient matrix AA represents the signed volume of the parallelepiped spanned by its column vectors:

D=det⁡(A)=a1(b2c3−b3c2)−b1(a2c3−a3c2)+c1(a2b3−a3b2)D = \det(A) = a_1(b_2 c_3 - b_3 c_2) - b_1(a_2 c_3 - a_3 c_2) + c_1(a_2 b_3 - a_3 b_2)

Geometrically, D≠0D \neq 0 holds if and only if the three plane normal vectors are linearly independent (do not lie flat inside a common plane). Substituting the constant column d\mathbf{d} into column 1, 2, or 3 gives Dx,Dy,DzD_x, D_y, D_z, and Cramer’s Rule yields x=Dx/Dx = D_x / D, y=Dy/Dy = D_y / D, and z=Dz/Dz = D_z / D. You can verify determinant values independently with our system determinant calculator or invert AA explicitly using the matrix inverse calculator.

All Singular Cases: Triangular Prisms, Hinges, and Ranks

When D=0D = 0, the planes exhibit linear dependence and fall into one of several distinct geometric arrangements governed by rank⁡(A)\operatorname{rank}(A) and rank⁡([A∣d])\operatorname{rank}([A \mid \mathbf{d}]):

rank(A) rank([A|d]) Solution Set 3D Geometric Interpretation
3 3 Unique Point (x, y, z) Three planes meet cleanly at one vertex point
2 2 Infinite Line (1 param t) Three planes share one hinge line (like open book pages) or two match
1 1 Infinite Plane (2 params s, t) All three equations describe the exact same plane
2 3 Empty (No Solution) Triangular prism (pairwise parallel intersections) or 2 parallel planes cut by 1
1 2 Empty (No Solution) Parallel separated planes with identical normal vector

You can construct explicit family equations for the rank-2 or rank-1 cases inside our parametric solution finder or diagnose consistency thresholds directly with the system of equations consistency checker.

Circuit Meshes, 3D Statics, Curve Fitting, and Chemistry

Three-Node Electrical Networks

Applying Kirchhoff’s Current Law at three independent circuit nodes yields three linear conductance equations solving directly for node voltages V1,V2,V3V_1, V_2, V_3.

3D Force & Truss Equilibrium

Balancing static forces ∑Fx=0,  ∑Fy=0,  ∑Fz=0\sum F_x = 0, \; \sum F_y = 0, \; \sum F_z = 0 determines cable tensions in three support struts carrying a suspended load.

Quadratic Curve & Circle Fitting

Finding the unique parabola y=ax2+bx+cy = ax^2 + bx + c through three non-collinear points forms a 3×33 \times 3 Vandermonde system in (a,b,c)(a, b, c).

Stoichiometry & Multi-Asset Portfolios

Balancing atom counts across chemical reactions or allocating capital across three bond maturities to match duration and yield targets solves a linear system directly.

Step-by-Step Worked 3×3 Numerical Examples

Example 1: Unique Integer Intersection

Solve 2x+3y−z=52x + 3y - z = 5, x−2y+2z=4x - 2y + 2z = 4, and 3x+2y+z=103x + 2y + z = 10.

  1. Add Equation 1 and Equation 3 to eliminate zz directly: 5x+5y=15  ⟹  x+y=35x + 5y = 15 \implies x + y = 3.
  2. Double Equation 1 (4x+6y−2z=104x + 6y - 2z = 10) and add Equation 2 to eliminate zz a second time: 5x+4y=145x + 4y = 14.
  3. Subtract 4x+4y=124x + 4y = 12 from 5x+4y=145x + 4y = 14 to obtain x=2x = 2, giving y=3−2=1y = 3 - 2 = 1 and z=2(2)+3(1)−5=2z = 2(2) + 3(1) - 5 = 2.

Example 2: Quadratic Interpolation Through 3 Points

Find y=ax2+bx+cy = ax^2 + bx + c passing through (0,2)(0, 2), (1,5)(1, 5), and (2,12)(2, 12). Substituting each point forms c=2c = 2, a+b+c=5a + b + c = 5, and 4a+2b+c=124a + 2b + c = 12. Solving yields a=2,  b=1,  c=2a = 2, \; b = 1, \; c = 2, or y=2x2+x+2y = 2x^2 + x + 2. For straight-line 2-point estimation instead of quadratic fitting, see our linear interpolation calculator.

Common Elimination Errors and Best Practices

  • Eliminating two different variables across pairs: When reducing from 3 equations to 2, always eliminate the same variable (say zz) from both Equation Pairs (1,2)(1, 2) and (1,3)(1, 3); eliminating zz once and yy once leaves all three unknowns coupled.
  • Sign drift in 3×3 cofactors: Remember the checkerboard sign pattern (+,−,+)(+, -, +) on Row 1 when computing det⁡(A)\det(A)—forgetting the minus sign on the middle term −b1(a2c3−a3c2)-b_1(a_2c_3 - a_3c_2) is the number-one error in hand Cramer calculations.
  • Omitting zeros for missing terms: Realign columns strictly in (x,y,z)(x, y, z) order before building the augmented matrix so coefficients never shift columns.

Computational Engine and Interactive 3D Visualization

All matrix row operations, determinant expansions (D,Dx,Dy,Dz)(D, D_x, D_y, D_z), and 3D isometric projections run instantaneously inside your browser. Drag anywhere inside the visualization box to inspect how the three planes intersect or separate in space, toggle full step-by-step RREF transformation tables, and verify residual error across all three input equations. For overdetermined m×3m \times 3 datasets with more equations than unknowns, compare with our least-squares overdetermined solver.

Fact-Checked & Verified • Computational Accuracy Standards
Updated November 2026 • Editorial Policy
Authored By
Sanjay Samanta

Lead Developer & Founder of Basic Math Tools. Specializes in browser-native computational algorithms and applied mathematics.

Reviewed & Verified By
Academic Review Board

Mathematics & curriculum specialists. Audited against standard algebraic and arithmetic principles.

Found an error or have an improvement suggestion? Report a calculation issue

Frequently Asked Questions

What is a system of 3 linear equations in 3 variables?
A 3-variable linear system consists of three simultaneous linear equations of the form aᵢx + bᵢy + cᵢz = dᵢ for i = 1, 2, 3. Each equation defines a flat two-dimensional plane in 3D Euclidean space, and any solution triple (x, y, z) represents a point lying simultaneously on all three planes.
What are all the possible geometric configurations of three planes in 3D space?
Three planes can yield: (1) a unique single intersection point (rank 3, determinant D != 0); (2) infinitely many solutions along a line (rank 2, all three planes share a common hinge line like pages of a book) or across a plane (rank 1, all three equations represent the same plane); or (3) no solution if at least two planes are parallel and distinct, if three planes form a triangular prism with parallel pairwise intersections, or if two coincident planes conflict with a parallel third plane.
How does Gaussian elimination solve a 3x3 system step by step?
Write the 3x4 augmented matrix [A | d], swap rows if needed so the top-left pivot is nonzero, normalize the pivot row, and add multiples of Row 1 to Rows 2 and 3 to zero out column 1 below it. Repeat on column 2 and column 3 to reach Reduced Row Echelon Form (RREF), from which x, y, and z read directly off the final column.
How does Cramer’s Rule work for 3 variables (x, y, z)?
Compute four 3x3 determinants: the main coefficient determinant D = det(A), plus Dx, Dy, and Dz formed by replacing the 1st, 2nd, or 3rd column of A with the right-hand constants [d₁, d₂, d₃]ᵀ. Whenever D != 0, the unique solution is x = Dx / D, y = Dy / D, and z = Dz / D.
Is Gaussian elimination or Cramer’s Rule faster for 3x3 systems?
Cramer’s Rule gives a clean symbolic formula useful when only one variable such as z is needed or when parameters appear algebraically, requiring four 3x3 determinants (about 40–50 arithmetic operations). Gaussian elimination requires roughly half as many operations for numerical 3x3 systems, scales far better to 4x4 or larger systems, and cleanly detects infinite vs inconsistent singular cases.
Why did my 3-variable system return no solution even though none of the planes are parallel?
Three non-parallel planes can still fail to share a common point if they form an open triangular prism—similar to a hollow roof truss where each pair meets along an edge line, and all three lines run parallel without ever converging. Algebraically, rank(A) = 2 while rank([A|d]) = 3, producing a contradictory reduced row [0 0 0 | k] with k != 0.
How can you find a plane or quadratic curve passing through 3 given points using a 3x3 solver?
Fitting a parabola y = ax² + bx + c through three points (x₁, y₁), (x₂, y₂), (x₃, y₃) generates a 3-variable linear system in the unknown coefficients (a, b, c). Similarly, solving circuit node voltages, 3D force equilibrium equations, and polynomial interpolation weights directly produces 3x3 linear systems.
What happens if a variable is missing from one of the three equations?
Simply enter 0 as the coefficient for the missing variable. For instance, enter x + 2z = 5 as 1x + 0y + 2z = 5. Zero coefficients frequently make Gaussian elimination even faster because fewer elimination steps are required.