Simplex Method Calculator with Steps
Simplex method calculator with steps: see every tableau, pivot column, ratio test and row operation, with a fully worked example you can check against your homework.
Simplex Calculator
How Simplex Method Calculator Works
Enter the LP Problem
Type the objective function coefficients and every constraint row with its right-hand-side value.
Choose Maximize or Minimize
Pick your optimization goal. The tool builds the initial tableau with slack variables automatically.
Run the Pivot Iterations
The calculator identifies pivot column by Cj-Zj, computes ratios, performs elementary row operations until optimal.
Read the Optimal Solution
Final tableau displays optimal variable values, Zj row, and the maximum/minimum objective value.
Sample Simplex Tableau Output
Example tableau iteration for a 2-variable maximization problem
| Basis | x1 | x2 | s1 | s2 | RHS | Cj-Zj |
|---|---|---|---|---|---|---|
| x1 | 14 | 0 | 0 | 1 | 14 | 0 |
| x2 | 7 | 1 | 0 | 0 | 7 | 5 |
| Zj | 35 | 5 | 0 | 0 | 35 |
See Every Simplex Step
This simplex method calculator with steps shows the full working, not just the final answer. It builds the initial tableau, marks the pivot column (most positive Cj − Zj) and pivot row (minimum ratio), and prints the row operations for every iteration until the tableau is optimal. That is the working teachers mark, so you can copy it or compare it line by line with your own.
Worked Example: Setting Up
Maximize Z = 2x1 + 3x2 subject to x1 + x2 ≤ 4, x1 + 3x2 ≤ 6 and x1, x2 ≥ 0. Add slack variables to get x1 + x2 + s1 = 4 and x1 + 3x2 + s2 = 6. The starting basis is s1 = 4, s2 = 6 with x1 = x2 = 0 and Z = 0.
Step 1: First Pivot
The Cj − Zj row is 2 for x1 and 3 for x2, so x2 enters. The ratio test gives 4 / 1 = 4 and 6 / 3 = 2, so s2 leaves and the pivot element is 3. Divide row 2 by 3 to get x2 = 2, then subtract it from row 1 to get s1 = 2. Now Z = 3 × 2 = 6.
Step 2: Second Pivot and the Optimum
In the new tableau Cj − Zj for x1 is 2 − 3 × (1/3) = 1, still positive, so x1 enters. The ratios are 2 / (2/3) = 3 and 2 / (1/3) = 6, so s1 leaves. After this pivot the Cj − Zj values are 0, 0, −3/2 and −1/2, so the tableau is optimal: x1 = 3, x2 = 1 and maximum Z = 9.
Common Mistakes the Steps Reveal
Most wrong answers come from three slips: choosing the pivot row with a negative or zero entry in the ratio test, forgetting to divide the whole pivot row (including RHS) by the pivot element, and computing Zj with the wrong CB values after a basis change. Seeing every tableau makes it easy to find which step went wrong.
Related calculators
Frequently Asked Questions
How do you solve the simplex method step by step?
Write the problem in standard form with slack variables, build the initial tableau, pick the column with the most positive Cj − Zj, run the ratio test to pick the row, pivot, and repeat until no Cj − Zj is positive.
Does this calculator show every iteration?
Yes. It shows the initial tableau and every following tableau with the pivot column, pivot row, Zj and Cj − Zj rows highlighted, until the optimal tableau.
Can I use it to check my homework?
Yes. Enter the problem you solved by hand and compare each tableau. The first tableau that differs from yours shows where the arithmetic slip happened.
What is the answer to the example on this page?
Maximize 2x1 + 3x2 with x1 + x2 ≤ 4 and x1 + 3x2 ≤ 6 takes two pivots and gives x1 = 3, x2 = 1 and Z = 9.
What format should I enter the objective in?
Use a form like 2x1 + 3x2, with one constraint per line such as x1 + 3x2 <= 6. The calculator reads the coefficients automatically.