Cramer Rule 3×3 Calculator
Solve a system of three linear equations in three unknowns using Cramer’s rule. Enter the coefficients and constants to get the unique solution (x, y, z) instantly—for example, the system x+y+z=6, 2x−y+z=3, x+2y−z=2 yields (1, 2, 3).
Cramer Rule 3×3 Calculator
Results are estimates for informational use only.
What Is a Cramer Rule 3×3 Calculator?
A Cramer Rule 3×3 Calculator is a tool that solves a system of three linear equations with three unknown variables. The equations take the standard form a₁x + b₁y + c₁z = d₁, a₂x + b₂y + c₂z = d₂, and a₃x + b₃y + c₃z = d₃. You provide the twelve numbers that make up the system—nine coefficients and three constants—and the calculator returns the values of x, y, and z.
The method behind this calculator is Cramer’s rule, a classic technique from linear algebra that uses determinants. For a 3×3 system, the rule requires computing four separate 3×3 determinants: one for the coefficient matrix (called D) and three more where one column of the coefficient matrix is replaced by the constant column (called Dx, Dy, and Dz). The solution is then simply x = Dx/D, y = Dy/D, and z = Dz/D.
This approach works beautifully when the system has exactly one solution. That happens when the determinant of the coefficient matrix, D, is not zero. If D equals zero, the system either has no solution or infinitely many solutions, and Cramer’s rule cannot produce a unique answer.
The calculator is designed for anyone who works with systems of linear equations: students checking homework, engineers solving circuit or force-balance problems, economists analyzing market equilibrium, and data scientists dealing with small linear models. Instead of grinding through elimination steps by hand, you can enter the coefficients and get the answer in seconds.
Because the calculator handles real-number coefficients and constants, it works for whole numbers, fractions, decimals, and even negative values. The results are displayed to four decimal places, which is precise enough for most practical applications while keeping the output readable.
How to Use This Cramer Rule 3×3 Calculator
Using the calculator is straightforward. You will enter twelve numbers total: three coefficients and one constant for each of the three equations. Follow these steps in order.
- Enter a₁ (eq 1): Type the coefficient of x in the first equation. For example, if your first equation is 2x + 3y − z = 1, enter 2.
- Enter b₁ (eq 1): Type the coefficient of y in the first equation. In the same example, enter 3.
- Enter c₁ (eq 1): Type the coefficient of z in the first equation. For the example, enter −1.
- Enter d₁ (eq 1): Type the constant term on the right side of the first equation. For the example, enter 1.
- Enter a₂ (eq 2): Type the coefficient of x in the second equation. If your second equation is x − y + 2z = −1, enter 1.
- Enter b₂ (eq 2): Type the coefficient of y in the second equation. For the example, enter −1.
- Enter c₂ (eq 2): Type the coefficient of z in the second equation. For the example, enter 2.
- Enter d₂ (eq 2): Type the constant term of the second equation. For the example, enter −1.
- Enter a₃ (eq 3): Type the coefficient of x in the third equation. If your third equation is 3x + 2y + z = 10, enter 3.
- Enter b₃ (eq 3): Type the coefficient of y in the third equation. For the example, enter 2.
- Enter c₃ (eq 3): Type the coefficient of z in the third equation. For the example, enter 1.
- Enter d₃ (eq 3): Type the constant term of the third equation. For the example, enter 10.
After entering all twelve values, the calculator computes the four determinants and displays x, y, and z. The inputs accept any real number, including decimals like 1.5 and negative values like −3. There are no units to worry about—the coefficients and constants are pure numbers, and the solution values carry the same unit as the constants in your equations.
If you leave a field empty or type something that is not a number, the calculator will show an error message. Double-check that every field is filled before pressing calculate.
Formula
The calculator assumes the system has a unique solution, meaning the determinant of the coefficient matrix is not zero. All coefficients and constants are real numbers.
Cramer’s rule for a 3×3 system uses four determinants. First, define the coefficient matrix and the three matrices formed by replacing one column with the constant column.
D = det([[a₁, b₁, c₁], [a₂, b₂, c₂], [a₃, b₃, c₃]])
Dx = det([[d₁, b₁, c₁], [d₂, b₂, c₂], [d₃, b₃, c₃]])
Dy = det([[a₁, d₁, c₁], [a₂, d₂, c₂], [a₃, d₃, c₃]])
Dz = det([[a₁, b₁, d₁], [a₂, b₂, d₂], [a₃, b₃, d₃]])
Then the solution is:
x = Dx / D
y = Dy / D
z = Dz / D
Each determinant is expanded using the standard 3×3 formula. For a matrix with rows [a, b, c], [d, e, f], and [g, h, i], the determinant is a(ei − fh) − b(di − fg) + c(dh − eg). The calculator applies this expansion three times for each of the four determinants.
| Symbol | Meaning | Unit |
|---|---|---|
| a₁, b₁, c₁ | Coefficients of x, y, z in equation 1 | None |
| d₁ | Constant term in equation 1 | None |
| a₂, b₂, c₂ | Coefficients of x, y, z in equation 2 | None |
| d₂ | Constant term in equation 2 | None |
| a₃, b₃, c₃ | Coefficients of x, y, z in equation 3 | None |
| d₃ | Constant term in equation 3 | None |
| D | Determinant of the coefficient matrix | None |
| Dx, Dy, Dz | Determinants with the constant column replacing the x, y, z column | None |
| x, y, z | Solution values | Same as constants |
The logic behind Cramer’s rule is elegant. The determinant D measures the “scale” of the coefficient matrix. Each of Dx, Dy, and Dz measures the same scale but with one column swapped for the constants. Dividing the swapped determinant by D gives the corresponding variable. This works because the ratio of determinants isolates each variable in turn.
Use Cramer’s rule when the system has a unique solution, which requires D ≠ 0. If D = 0, the method fails, and you should use a different approach such as Gaussian elimination or checking for consistency separately.
Cramer Rule 3×3 Calculator Example
Consider the system:
x + y + z = 6
2x − y + z = 3
x + 2y − z = 2
Here the coefficients are a₁ = 1, b₁ = 1, c₁ = 1, d₁ = 6; a₂ = 2, b₂ = −1, c₂ = 1, d₂ = 3; and a₃ = 1, b₃ = 2, c₃ = −1, d₃ = 2.
Step 1: Compute D. The coefficient matrix is [[1, 1, 1], [2, −1, 1], [1, 2, −1]]. Expanding:
D = 1·((−1)(−1) − 1·2) − 1·(2·(−1) − 1·1) + 1·(2·2 − (−1)·1)
D = 1·(1 − 2) − 1·(−2 − 1) + 1·(4 + 1)
D = −1 + 3 + 5 = 7
Step 2: Compute Dx. Replace the first column with the constants: [[6, 1, 1], [3, −1, 1], [2, 2, −1]]. Expanding:
Dx = 6·((−1)(−1) − 1·2) − 1·(3·(−1) − 1·2) + 1·(3·2 − (−1)·2)
Dx = 6·(1 − 2) − 1·(−3 − 2) + 1·(6 + 2)
Dx = −6 + 5 + 8 = 7
Step 3: Compute Dy. Replace the second column with the constants: [[1, 6, 1], [2, 3, 1], [1, 2, −1]]. Expanding:
Dy = 1·(3·(−1) − 1·2) − 6·(2·(−1) − 1·1) + 1·(2·2 − 3·1)
Dy = 1·(−3 − 2) − 6·(−2 − 1) + 1·(4 − 3)
Dy = −5 + 18 + 1 = 14
Step 4: Compute Dz. Replace the third column with the constants: [[1, 1, 6], [2, −1, 3], [1, 2, 2]]. Expanding:
Dz = 1·((−1)·2 − 3·2) − 1·(2·2 − 3·1) + 6·(2·2 − (−1)·1)
Dz = 1·(−2 − 6) − 1·(4 − 3) + 6·(4 + 1)
Dz = −8 − 1 + 30 = 21
Step 5: Divide. Now compute the solution:
x = Dx / D = 7 / 7 = 1
y = Dy / D = 14 / 7 = 2
z = Dz / D = 21 / 7 = 3
The solution is x = 1, y = 2, z = 3. You can verify by plugging these values back into the original equations: 1 + 2 + 3 = 6, 2(1) − 2 + 3 = 3, and 1 + 2(2) − 3 = 2. All three check out.
Here is a second example for reference. Consider the system:
2x + y − z = 8
−3x − y + 2z = −11
−2x + y + 2z = −3
| Quantity | Value | Computation |
|---|---|---|
| D | −1 | 2·((−1)(2) − 2·1) − 1·((−3)(2) − 2·(−2)) + (−1)·((−3)(1) − (−1)(−2)) = −8 + 2 + 5 |
| Dx | −2 | 8·((−1)(2) − 2·1) − 1·((−11)(2) − 2·(−3)) + (−1)·((−11)(1) − (−1)(−3)) = −32 + 16 + 14 |
| Dy | −3 | 2·((−11)(2) − 2·(−3)) − 8·((−3)(2) − 2·(−2)) + (−1)·((−3)(−3) − (−11)(−2)) = −32 + 16 + 13 |
| Dz | 1 | 2·((−1)(−3) − (−11)(1)) − 1·((−3)(−3) − (−11)(−2)) + 8·((−3)(1) − (−1)(−2)) = 28 + 13 − 40 |
| x | 2 | Dx / D = −2 / −1 |
| y | 3 | Dy / D = −3 / −1 |
| z | −1 | Dz / D = 1 / −1 |
Checking: 2(2) + 3 − (−1) = 8, −3(2) − 3 + 2(−1) = −11, and −2(2) + 3 + 2(−1) = −3. The solution is correct.
Real-Life Applications
Circuit Analysis
Electrical engineers use systems of three linear equations to analyze circuits with three independent loops or nodes. Kirchhoff’s voltage and current laws produce exactly this form, where the unknowns are currents or voltages. For example, a circuit with three loops yields three equations in three unknown loop currents, and Cramer’s Rule solves for each current directly from the determinants.
Mixture Problems in Chemistry
When blending three solutions with different concentrations, you often know the target volume, the target solute amount, and a third constraint such as cost or a second solute. Three linear equations describe these requirements, and the calculator finds the volume of each solution.
3D Force Equilibrium in Physics
In statics, an object held by three unknown forces in three dimensions can be modeled with one equilibrium equation per axis. Cramer’s Rule finds the three force magnitudes that keep the object in balance.
Budget Allocation Across Three Categories
Suppose you allocate a fixed budget across three spending categories over three periods, with known totals each period. The per-category amounts are the unknowns. Three equations and three unknowns map directly onto Cramer’s Rule.
Nutrition Targets with Three Foods
If you need to hit protein, carbohydrate, and calorie targets using three foods, each food contributes known amounts per serving. Three equations describe the totals, and the calculator returns the serving sizes.
Break-Even with Three Products
A small business selling three products can model revenue and cost constraints with three linear equations. Solving with Cramer’s Rule gives the sales mix that satisfies those constraints.
Limitations
The Cramer Rule 3×3 Calculator is powerful, but it has important limitations. Understanding these helps you know when to trust the result and when to use a different approach.
First, the system must be in standard form. If your equations are not written as a₁x + b₁y + c₁z = d₁, a₂x + b₂y + c₂z = d₂, and a₃x + b₃y + c₃z = d₃, rearrange them before entering values. The calculator cannot handle products of variables or squared terms.
Second, if the determinant D is zero, the system has no unique solution. When D = 0 and Dx, Dy, and Dz are also zero, there are infinitely many solutions. When D = 0 but at least one of Dx, Dy, or Dz is nonzero, the system is inconsistent and has no solution.
Third, all twelve inputs must be valid real numbers. Empty fields or non-numeric entries produce an error. The calculator does not accept fractions typed as text like 1/2; enter 0.5 instead.
Fourth, very large or very small numbers may show rounding in the displayed output. Internally the calculator uses full precision, but results are shown to four decimal places.
Finally, Cramer’s Rule for 3×3 systems is elegant for hand checks and small problems, but for larger systems Gaussian elimination or a general matrix solver is usually more efficient and numerically stable.
Common Mistakes
- Swapping coefficient order. Entering a₁ where a₂ belongs (or mixing rows) produces the wrong determinants. Match each coefficient to its equation and variable.
- Forgetting negative signs. A term like −y must be entered as −1 for the y coefficient, not 1.
- Not rearranging to standard form. If an equation is z = 2x − y + 5, rewrite it as −2x + y + z = 5 before entering values.
- Confusing Dx, Dy, and Dz. Dx replaces the x-column with constants, Dy replaces the y-column, and Dz replaces the z-column. Swapping them assigns the wrong value to each variable.
- Dividing by a zero determinant. If D = 0, x = Dx/D is undefined. The calculator flags this; when computing by hand, stop and classify the system instead.
- Entering fractions as text. Use decimals (0.75), not 3/4.
- Ignoring a negative determinant. A negative D is valid. Signs of Dx, Dy, and Dz adjust accordingly.
- Using the tool for nonlinear systems. Cramer’s Rule only solves linear equations. Terms like x² or x·y are out of scope.
Accuracy Tips
- Write all three equations in standard form first. Align coefficients for x, y, and z before typing anything.
- Double-check each of the twelve numbers. One wrong digit changes D, Dx, Dy, Dz, and the entire solution.
- Watch negative coefficients carefully. In −3x − y + 2z = −11, enter −3, −1, 2, and −11.
- Convert fractions to decimals before entry.
- Verify by substitution. After you get x, y, and z, plug them back into all three original equations.
- Inspect D first. If D is zero, do not trust a unique solution.
- Keep variable order consistent across all three equations (x, then y, then z).
- Round only at the end if you are checking work by hand; keep full precision in intermediate determinants.
Related Concepts
Cramer’s Rule is one of several ways to solve linear systems. Related tools on HubCalculators help you choose the right method.
Cramer Rule 2×2 Calculator: The two-variable version of the same method, with 2×2 determinants.
Matrix Determinant 3×3 Calculator: Computes only the determinant of a 3×3 matrix—the same D used here.
Systems of Equations Calculator: A more general solver for linear systems that may use elimination or matrix methods.
Matrix Cofactor Calculator: Builds cofactors used in determinants and inverse-matrix methods.
Gaussian Elimination: Row-reduces an augmented matrix; preferred for larger systems where Cramer’s Rule becomes costly.
Inverse Matrix Method: Solves Ax = b by computing A⁻¹ when A is invertible (which is exactly when D ≠ 0).
Use Cramer’s Rule when you want an explicit determinant-based formula for a small unique solution. Switch to elimination or a general solver when the system grows or when you need better numerical behavior.
Cramer Rule 3×3 Calculator FAQs
What is a Cramer Rule 3×3 Calculator?
It solves three linear equations in three unknowns with Cramer’s Rule. You enter twelve numbers (nine coefficients and three constants), and the calculator returns x, y, and z along with the determinants D, Dx, Dy, and Dz.
Which formula does this calculator use?
It builds the coefficient determinant D and the three modified determinants Dx, Dy, and Dz (each time replacing one variable column with the constants). Then x = Dx/D, y = Dy/D, and z = Dz/D, provided D ≠ 0.
How accurate are the results?
Results are shown to four decimal places. Internal arithmetic uses full floating-point precision, which is enough for typical homework, engineering estimates, and planning problems.
What units does the calculator use?
None. Coefficients and constants are pure numbers. Apply whatever units your problem uses, as long as they are consistent across equations.
What is the best input range?
Any real numbers work, including negatives and decimals. Extremely large or tiny values may display with rounding. For clearest results, keep inputs in a moderate range when possible.
What happens if the determinant D is zero?
There is no unique solution. If Dx, Dy, and Dz are also zero, there are infinitely many solutions. If any of those is nonzero while D is zero, the system has no solution. The calculator reports the D = 0 case instead of dividing.
Can beginners use this calculator?
Yes. Enter the twelve coefficients from your standard-form system and press Calculate. You can also use it to check hand-worked determinants while learning the method.
How is this different from the 2×2 Cramer calculator?
The 2×2 tool solves two equations in two unknowns with 2×2 determinants. This 3×3 tool handles three equations, three unknowns, and 3×3 determinants, including an extra variable z and determinant Dz.
How do I interpret the results?
x, y, and z are the unique values that satisfy all three equations when D ≠ 0. The metrics panel shows D, Dx, Dy, Dz and the three quotients so you can see each step.
Is this calculator free to use?
Yes. The Cramer Rule 3×3 Calculator on HubCalculators is free, with no signup or usage fee.
Conclusion
The Cramer Rule 3×3 Calculator gives a clear, determinant-based path to the unique solution of three linear equations in three unknowns. Enter the twelve coefficients, review D, Dx, Dy, and Dz, and read off x, y, and z.
The worked example with 2x + y − z = 8, −3x − y + 2z = −11, and −2x + y + 2z = −3 shows the full process, including the check by substitution. Real-world uses range from circuit loops to mixtures, budgets, and force balance.
Remember the key limit: if D = 0, there is no unique solution. For larger systems, prefer elimination or a general matrix solver. For everyday 3×3 linear systems, this calculator is a fast way to get—and verify—an exact answer.
