Amdahl's Law Calculator

Estimate the speedup of a fixed task from its parallel fraction and the number of processors.

Technology and NetUpdated 2026-11-203 min read
Amdahl's Law Calculator
The share of single processor time that can be split perfectly across cores.
Ideal speedup
...
Maximum speedup...
Parallel efficiency...

What it does

Amdahl's law explains why adding processors to a program eventually stops helping. It splits the work into a part that can run in parallel and a part that must run in sequence. Only the parallel part gets faster when more cores are added. The serial part takes the same time no matter how many processors are available, so it becomes the limit on the whole job.

The standard formula uses the fraction of single processor time that is parallel. If that fraction is P and there are N processors, the parallel part takes P divided by N of the original time while the serial part still takes one minus P. Adding those gives the new runtime as a fraction of the old one. Speedup is the reciprocal of that runtime fraction.

The most useful output is often the ceiling. As the processor count grows without limit, the parallel share tends to zero time and the total runtime tends to the serial share. Speedup therefore approaches one divided by the serial fraction. A program that is 75 percent parallel can never be more than four times faster, however many cores you buy.

Efficiency is speedup divided by the processor count. It answers whether the extra cores are being used well. Going from two cores to sixteen may increase speedup, but if efficiency falls sharply the extra hardware is delivering less and less. The tool prints efficiency alongside speedup so that trade off is visible.

The law is a strong scaling result for a fixed workload. It assumes the parallel part divides perfectly, that work is balanced, and that there is no cost for communication, synchronisation or memory contention. Real programs pay those costs, so measured speedup is usually lower. When the problem size grows along with the processor count, Gustafson's law is often a better model.

How to use

  1. Measure or estimate what share of single core runtime can run in parallel.
  2. Enter that share as a percentage from 0 to 100.
  3. Enter the number of processors you plan to use, as a whole number from 1 to 1024.
  4. Read the ideal speedup, the speedup ceiling and the efficiency.
  5. Try several processor counts to see where extra cores stop paying off.
  6. Compare the ideal result with measured runtimes, and treat the gap as overhead to investigate.

Formula

Speedup = 1 / ((1 - P) + P / N), where P is the parallel fraction and N is the processor count. Maximum speedup = 1 / (1 - P).
P
Parallel fraction of the original single processor time, entered as a percentage.
N
Number of processors, a whole number.
1 - P
Serial fraction that cannot use extra processors.
Speedup
Original runtime divided by parallel runtime.
Efficiency
Speedup divided by N, shown as a percentage.

At 100 percent parallel work the serial fraction is zero, so there is no finite ceiling and the tool prints Unbounded for maximum speedup. At 0 percent parallel work the speedup is exactly one regardless of processor count. The law uses fractions of execution time, not fractions of source code or instruction count, so measure timings rather than counting lines.

Worked example

Example: 75 percent parallel work on 4 processors

Defaults: parallel fraction 75 percent and 4 processors.

  1. Convert the percentage: P = 75 / 100 = 0.75, so the serial fraction is 0.25.
  2. Divide the parallel part by the core count: 0.75 / 4 = 0.1875.
  3. Add the serial part: 0.25 + 0.1875 = 0.4375.
  4. Take the reciprocal: speedup = 1 / 0.4375 = 2.286.
  5. Find the ceiling: 1 / 0.25 = 4.00.
  6. Find efficiency: 2.286 / 4 x 100 = 57.14 percent, so the tool shows 2.286, 4.00 and 57.14 %.

Reference table

Ideal speedup for a task that is 75 percent parallel
ProcessorsSpeedupEfficiency
11.000100.00 %
21.60080.00 %
42.28657.14 %
82.90936.36 %
163.36821.05 %
Unlimited4.00Not meaningful

Limits

  • Assumes a fixed workload and a one processor baseline.
  • Ignores communication, synchronisation, memory bandwidth and load imbalance.
  • Treats the parallel fraction as perfectly divisible and constant as the problem changes.
  • Does not model weak scaling, where the workload grows with the processor count.

Common mistakes

  • Entering a fraction such as 0.75 instead of the percentage 75.
  • Expecting speedup to keep growing linearly with core count.
  • Counting lines of code rather than measuring execution time shares.
  • Ignoring overhead that makes measured speedup lower than the ideal value.
  • Using the law for a task whose size grows with the number of processors.

Try it yourself

Quick checks. Answers sit tucked under each question.

A task is 90 percent parallel on 10 processors. What does the tool show?

Serial fraction is 0.1 and 0.9 / 10 = 0.09, so the runtime fraction is 0.19. Speedup = 1 / 0.19 = 5.263, the ceiling is 10.00 and efficiency is 52.63 %.

Half the work is parallel and there are 2 processors. What is the speedup?

Runtime fraction is 0.5 + 0.5 / 2 = 0.75, so speedup = 1 / 0.75 = 1.333. The ceiling is 2.00 and efficiency is 66.67 %.

What if the whole task is parallel on 8 processors?

The serial fraction is zero, so speedup equals 8.000, efficiency is 100.00 % and maximum speedup is shown as Unbounded.

Questions

What does Amdahl's law tell me in practice?

It shows how much of a program must be parallel before extra cores give a worthwhile gain, and where the serial part puts a hard limit on speedup.

Why is the speedup ceiling important?

It tells you the best result possible with unlimited processors. If the ceiling is low, optimisation should target the serial part instead of buying more cores.

What is parallel efficiency?

It is speedup divided by processor count. High efficiency means each added core is contributing close to its share of the work.

Why is my measured speedup lower?

The law assumes no overhead. Real programs spend time on communication, locking, memory contention and uneven work distribution.

When should I use Gustafson's law instead?

When the problem size grows with the available processors. Amdahl's law holds the workload fixed, which is a strong scaling view.

Who published the original idea?

Gene Amdahl published the argument in 1967 in a paper about the limits of single processor approaches to large scale computing.

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.