Jacobi Method Calculator

Solve a linear system by simultaneous iterative updates.

Math and PercentUpdated 2026-11-202 min read
Jacobi Method Calculator
x estimate
...
y estimate...
Steps completed...

What it does

The Jacobi method solves a linear system by repeatedly rearranging each equation for its unknown and computing all new values from the previous estimates. It is the simplest of the classical iterative schemes.

University of Minnesota numerical analysis notes describe Jacobi as the baseline method, with Gauss-Seidel obtained by a simple serialisation of the updates. Convergence is assured for diagonally dominant matrices.

Millersville University notes introduce both methods in the context of large sparse systems, which arise in differential equations and circuit analysis, where direct methods can be expensive.

This tool handles a two by two system with a zero starting guess and a chosen number of sweeps. It reports the current estimates of x and y.

Because all updates in a sweep use old values, Jacobi is easy to parallelise but often needs more iterations than Gauss-Seidel.

How to use

  1. Enter the four matrix coefficients and two right side values.
  2. Prefer a diagonally dominant system for reliable convergence.
  3. Enter the number of sweeps, up to 500.
  4. Read the x and y estimates in the main result.
  5. Compare with Gauss-Seidel on the same system.
  6. Increase the iteration count and watch the values settle.

Formula

x(new) = (b1 - a12 y(old)) / a11, y(new) = (b2 - a21 x(old)) / a22, both using the previous sweep.
a11, a12, a21, a22
Entries of the coefficient matrix.
b1, b2
Right hand side values.
x, y
Unknowns being approximated.
old, new
Values from the previous and current sweeps.

The engine computes both new values before replacing either, which is the defining feature of the Jacobi method. It starts from zero and rejects a zero diagonal entry.

Worked example

Example: a diagonally dominant system

4x + y = 11 and x + 3y = 11 with 10 iterations.

  1. Rearrange for x = (11 - y)/4 and y = (11 - x)/3.
  2. Starting from zero, the first sweep gives x = 2.75 and y = 3.6667, both from the zero guess.
  3. The second sweep uses those two values together to compute the next pair.
  4. After 10 sweeps, x is about 1.99999196 and y about 2.99998794.
  5. The exact solution is x = 2 and y = 3.
  6. Gauss-Seidel reaches the same accuracy in fewer sweeps on this system.

Reference table

First Jacobi sweeps for the worked system
Sweepxy
00.00000.0000
12.75003.6667
21.83332.7500
101.999991962.99998794

Limits

  • The tool handles 2 by 2 systems only.
  • It uses a fixed zero starting guess.
  • Convergence is not guaranteed for every matrix.
  • Results are shown to eight decimal places.

Common mistakes

  • Using newly computed values inside the same sweep, which makes it Gauss-Seidel.
  • Choosing a system that is not diagonally dominant and expecting convergence.
  • Entering a zero diagonal entry.
  • Assuming fast convergence for every system.
  • Comparing iteration counts without noting the different update rules.

Try it yourself

Quick checks. Answers sit tucked under each question.

What makes Jacobi different from Gauss-Seidel?

All updates in a sweep use values from the previous sweep only.

What is the exact solution of the worked system?

x = 2 and y = 3.

Why is Jacobi easy to parallelise?

Each new value depends only on old values.

Questions

What is the Jacobi method?

An iterative scheme updating all unknowns from the previous estimates.

When does it converge?

Convergence is assured for diagonally dominant systems.

How does it compare with Gauss-Seidel?

It is simpler and parallelisable but usually slower.

What is the starting guess here?

Zero for both unknowns.

Can it solve any linear system?

No. Some systems cause the iteration to diverge.

Why use iteration at all?

It is efficient for large sparse systems.

Sources

How this page was checked. The formula above was matched against the cited sources, and the worked example was run through the tool on this page before publishing. If you spot an error, contact us so we can fix it and note the correction.