Gustafson's Law Calculator

Estimate scaled speedup when the problem grows with the number of processors.

Technology and NetUpdated 2026-11-203 min read
Gustafson's Law Calculator
The share of fixed-time parallel work that cannot use extra cores.
Scaled speedup
...
Parallel fraction...
Parallel efficiency...

What it does

Gustafson's law offers a more optimistic view of parallel computing than Amdahl's law. Amdahl holds the problem size fixed and asks how much faster one job runs. Gustafson lets the problem grow as processors are added and asks how much more work can finish in the same time. That change in question makes a large difference in the answer.

The model splits the parallel run into a serial share and a parallel share. If the serial share is s and there are N processors, the scaled speedup is N minus s times N minus one. With a small serial share the result is close to N, meaning that almost all of the extra cores turn into useful work on a bigger problem.

The serial fraction here is measured as part of the parallel execution, not part of a single processor run. That distinction matters. Substituting a fraction measured under different assumptions can give a misleading comparison, so use values from a similar scaling experiment.

Efficiency is scaled speedup divided by the processor count. It shows what share of the ideal linear gain each core delivers. A result near 100 percent means the extra cores are being used well, while a falling efficiency points to serial bottlenecks or overhead in the real system.

The law is a model, not a performance guarantee. It assumes the parallel work can grow without running into memory limits, that work stays balanced across cores and that communication costs do not grow too quickly. Real clusters often depart from those assumptions, so treat the number as an upper bound to test against measurements.

How to use

  1. Measure the serial share of the work during a parallel run at a known core count.
  2. Enter that share as a percentage.
  3. Enter the number of processors you want to scale to.
  4. Read the scaled speedup and the parallel efficiency.
  5. Compare with a measured run at a larger problem size.
  6. Use Amdahl's law instead when the workload must stay fixed.

Formula

Scaled speedup = N - s x (N - 1), where s is the serial fraction of the parallel run and N is the processor count.
s
Serial fraction of the parallel run, entered as a percentage.
N
Number of processors, a whole number.
1 - s
Parallel fraction that scales with the processor count.
Scaled speedup
How much more work finishes in the same time.

At a serial fraction of zero the scaled speedup equals the processor count and efficiency is 100 percent. At a serial fraction of 100 percent there is no parallel work, so the speedup is 1 regardless of core count. The formula is a weak scaling model, so it is not directly comparable with a fixed workload speedup from Amdahl's law.

Worked example

Example: 10 percent serial work on 16 processors

Defaults: serial fraction 10 percent and 16 processors.

  1. Convert the serial share: s = 10 / 100 = 0.10.
  2. Find the serial penalty: 0.10 x (16 - 1) = 0.10 x 15 = 1.5.
  3. Subtract from the core count: 16 - 1.5 = 14.50.
  4. The parallel fraction is 100 - 10 = 90.00 %.
  5. Efficiency is 14.50 / 16 x 100 = 90.63 %.
  6. The tool shows 14.50, 90.00 % and 90.63 %.

Reference table

Scaled speedup at several serial fractions on 16 processors
Serial fractionParallel fractionScaled speedup
0 %100 %16.00
5 %95 %15.25
10 %90 %14.50
25 %75 %12.25
50 %50 %8.50

Limits

  • Assumes the problem size grows with the processor count.
  • Ignores communication, memory limits and load imbalance.
  • Uses a serial fraction measured in the parallel run, which is not interchangeable with other definitions.
  • Is an upper bound rather than a prediction of a particular machine.

Common mistakes

  • Entering the parallel percentage instead of the serial percentage.
  • Comparing the result directly with a fixed workload Amdahl speedup.
  • Using a serial fraction measured on a different size of problem.
  • Expecting linear scaling when memory bandwidth is the real limit.
  • Ignoring the cost of communication as the processor count grows.

Try it yourself

Quick checks. Answers sit tucked under each question.

The workload is fully parallel on 16 processors. What does the tool show?

The serial share is 0, so scaled speedup is 16.00, the parallel fraction is 100.00 % and efficiency is 100.00 %.

All work is serial on 16 processors. What is the result?

With s = 1, scaled speedup is 1.00, the parallel fraction is 0.00 % and efficiency is 6.25 %.

A quarter of the parallel run is serial on 8 processors. What is the scaled speedup?

8 - 0.25 x 7 = 6.25. The tool also shows a 75.00 % parallel fraction and 78.13 % efficiency.

Questions

What question does Gustafson's law answer?

How much larger a problem can finish in the same time when more processors are available, rather than how much faster a fixed problem runs.

Why is the result often close to the core count?

Because the parallel part grows with the processor count. Only the serial part holds the result back.

How is this different from Amdahl's law?

Amdahl keeps the workload fixed, so the serial part sets a hard ceiling. Gustafson lets the workload grow, so gains can stay close to linear for small serial shares.

What is scaled efficiency?

It is the scaled speedup divided by the number of processors, showing how much of the ideal linear gain is achieved.

Can I use a serial share from an Amdahl calculation?

Not safely. The two laws define the fraction in different frames, so the values are not interchangeable.

Who published the law?

John Gustafson published Reevaluating Amdahl's Law in 1988, arguing that scaled problem sizes better match many parallel workloads.

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.