Amdahl’s Law & Gustafson’s Law Multi-Core Parallel Speedup Calculator

Quantify serial bottleneck limits across N CPU/GPU cores.

Amdahl’s Law Speedup (Fixed Workload) 7.27 ×
Gustafson’s Law Scaled Speedup 14.8 ×
Infinite-Core Asymptotic Ceiling 12.5 ×
Parallel Core Efficiency (S / N) 45.45 %
Inputs
Try:
%
Percentage of workload that can execute in parallel (P %).
cores
Number of parallel CPU cores or GPU workers (N).
Results & Graph
Amdahl’s Law Speedup (Fixed Workload)
7.27 ×
Gustafson’s Law Scaled Speedup
14.8 ×
Infinite-Core Asymptotic Ceiling
12.5 ×
Parallel Core Efficiency (S / N)
45.45 %

Amdahl’s Law Speedup (Fixed Workload)

Graph 1 • How the inputs feed Amdahl’s Law Speedup
Amdahl’s Law & Gustafson’s Law Multi-Core Parallel Speedup Calculator • Custom Domain Schematic (Cloud SRE & Distributed Systems) parallelprocessoOut Parallelizable Fraction Pct: 92 % • Processor Cores N: 16 cores AMDAHL’S LAW SPEEDUP (FIXE 7.27 × • Gustafson’s Law Scaled: 14.8 × • Infinite-Core Asymptot: 12.5 × Eq: S_Amdahl = 1 / [ (1 − P) + P / N
Graph 2 • Amdahl’s Law Speedup (Fixed Workload) as Parallelizable Fraction Pct changes (40% to 160% of current)
0 × 6.40 × 12.80 × 1.53 36.80% 2.07 55.20% 3.23 73.60% 7.27 92% 8.72 110.4% 10.18 128.8% 11.63 147.2%
Graph 3 • Parallelizable Fraction Pct and Processor Cores N together Compares Amdahl’s Law Speedup (Fixed Workload) when Processor Cores N is shifted +25% (solid) vs. −25% (dashed).
0 × 5.20 × 10.40 × --- Processor Cores N @ 75% 2.58 -30% 3.89 -15% 7.94 +0% 8.36 +15% 9.45 +30%
Summary: With 92% parallelizable code across 16 cores, Amdahl speedup is 7.27×, Gustafson scaled speedup is 14.8×, and infinite-core ceiling is 12.5×.
Summary: With 92% parallelizable code across 16 cores, Amdahl speedup is 7.27×, Gustafson scaled speedup is 14.8×, and infinite-core ceiling is 12.5×.
Interactive chart & math engine powered by CalculatorGraph

Formula: Amdahl’s Law Speedup Systems Engineering Formula

SAmdahl = 1 / [ (1 − P) + P / N ]
SGustafson = (1 − P) + P × N
MaxSpeedup = 1 / (1 − P)
S_Amdahl = 1 / [ (1 − P) + P / N ]; S_Gustafson = (1 − P) + P × N; MaxSpeedup = 1 / (1 − P)
  • parallelizableFractionPct: Parallelizable Fraction Pct (%)
  • processorCoresN: Processor Cores N (cores)

Frequently Asked Questions

Why does going from 8 to 16 cores not double my speedup?

Because the serial part does not shrink. With 92% parallel code the calculator gives 5.13 times at 8 cores and 7.27 times at 16, only about 42% more. The parallel slice halves again, but the fixed 8% serial slice now takes up a bigger share of the remaining run time, so each doubling helps less than the one before.

Can real speedup ever beat the number of cores?

Occasionally, yes. Splitting the data can make each core's share fit in its cache, so memory stalls vanish and the run gets faster than N times. Amdahl's model cannot show this because it assumes the per-core work rate never changes. If you see it, first rule out a slow or badly tuned single-core baseline, which is the more common cause.

Does the law apply to GPUs as well as CPU cores?

The logic applies to any parallel hardware. The awkward part is choosing N, because a GPU's thousands of lanes do not behave like independent cores, and copying data to and from the card adds serial time. In practice people apply Amdahl to the whole program: the share of time spent in GPU kernels is p, and everything else counts as serial.

Which figure should I quote in a capacity plan, Amdahl or Gustafson?

Quote Amdahl if the workload is fixed and the goal is finishing it sooner, such as a nightly report or a build. Quote Gustafson if extra hardware will be used to process more data in the same time window. Stating which one you used, and why, avoids the 7.27 versus 14.8 confusion the default inputs create.

Does p stay the same when my input gets bigger?

Often not. Setup and final reporting tend to take roughly constant time, while the main loop grows with the data, so p usually rises with problem size. That is the observation behind Gustafson's Law. Measure p at the input size you actually plan to run, not on a small test file, or the Amdahl forecast will look worse than reality.

Should hyperthreads count as cores in this calculator?

Usually count physical cores. Two hardware threads on one core share the same execution units and caches, so the second thread typically adds only a fraction of a core's throughput, and for some heavy numeric code almost nothing. If you want to include them, measure the gain on your own workload and enter an effective core count instead.

What does the infinite-core ceiling tell me if I only own 16 cores?

It tells you how much headroom is left. With the defaults the ceiling is 12.5 and you already reach 7.27, so the best any future hardware upgrade could do is a bit under double your current speed. If the job needs a larger gain than that, the only route is reducing serial work in the code.

My measured speedup is below the calculator's. Is my p wrong?

Not necessarily. The calculator assumes zero overhead. Thread creation, synchronisation, load imbalance and memory contention all eat into real speedup. A better approach is to back-calculate p from a measured run on a small core count and then use that value, since it already includes some of those costs and predicts larger counts more realistically.

Is 92% parallel code the same as 92% of the code being parallel?

No. The fraction refers to run time on one core, not lines of source. A program can have a tiny parallel loop that accounts for 92% of the run time, or a huge parallel module that barely runs. Profile first and enter the time share; counting lines gives a number that has nothing to do with speed.

How should I read a 21.05% efficiency result?

It means most of the hardware is waiting. The page's 75% preset on 16 cores lands there: 3.37 times speedup against a ceiling of 4. Fewer cores would give nearly the same time at a fraction of the cost; 4 cores already reach 2.29 times. Low efficiency is a sign to work on the serial portion or to shrink the machine.

Does Amdahl's Law apply to a cluster of separate machines?

The formula still holds, but network communication between nodes acts like extra serial time, often far more than on a single multi-core chip. Sending results back to one coordinator, waiting for the slowest node and moving input files all count. Estimate p from a real run across two or three nodes rather than from single-machine numbers, or the forecast will be too optimistic.

Reading the default: 92% parallel code on 16 cores

Start with the numbers already filled in. The default says 92% of the work can be spread across cores and that you have 16 of them. Amdahl's Law turns that into a speedup of 7.27 times. That is less than half of what 16 cores sound like they ought to deliver, and the gap is the whole point of the law.

The arithmetic is short enough to do on paper. The serial part is 1 minus 0.92, so 0.08 of the original single-core run time. The parallel part is 0.92, shared across 16 cores, so it shrinks to 0.92 divided by 16, which is 0.0575. Add the two pieces and the new run time is 0.1375 of the old one. One divided by 0.1375 is 7.27, the figure at the top of the result.

The efficiency line reads 45.45%. That is simply the speedup divided by the core count, 7.27 over 16. Put plainly, the average core spends a bit less than half the run doing useful work. The rest of the time it waits while the serial 8% runs on one core.

A concrete version helps. If a job takes 60 minutes on a single core, these inputs predict about 8 and a quarter minutes on 16 cores. Of those minutes, 4.8 belong to the serial part, and no number of extra cores will touch them.

Why 12.5× is the ceiling, and what it says about buying more cores

The third line, the infinite-core ceiling, is 1 divided by the serial fraction. With 8% serial that is 1 divided by 0.08, which gives 12.5. Let N grow without limit and the p/N term falls towards zero, leaving only the serial 0.08 of the original time. Nothing in Amdahl's model can get below that floor.

For a purchase decision this is the most useful number on the page. At 16 cores you already have 7.27 of a possible 12.5. I ran the same 92% through the calculator at 32 cores and got 9.2 times, and at 64 cores 10.6 times. Four times the hardware buys roughly 46% more speed, while efficiency slides from 45.45% to 16.56%.

Going down instead of up tells the same story from the other side. At 8 cores the speedup is 5.13 times with 64.1% efficiency, and at 4 cores it is 3.23 times with 80.65% efficiency. The first few cores pay off well. Each one after that adds less.

If the ceiling is lower than the speedup you need, more cores is the wrong lever. Shrinking the serial part is the only change that raises it.

How hard the serial share bites: 75%, 92% and 99%

Small changes in the parallel fraction move the answer far more than changes in core count. The page's first preset drops the fraction to 75% and keeps 16 cores. Speedup falls to 3.37 times, the ceiling to 4 times, and efficiency to 21.05%. At 75% parallel, a 16-core machine is mostly idle, and you are already most of the way to the best any machine could ever manage.

Push the other way. At 95% on 16 cores the calculator gives 9.14 times with a ceiling of 20. At 99% it gives 13.91 times and a ceiling of 100. Moving from 92% to 95% looks like a three point tweak, but it cuts the serial share from 8% to 5%, more than a third smaller. That is why the ceiling jumps from 12.5 to 20.

The third preset, 99% on 64 cores, shows what a nearly serial-free program can do on a big machine: 39.26 times, with efficiency still at 61.35%. Even here the 1% serial share costs a lot. Perfect scaling would be 64 times, and the ceiling of 100 means no amount of hardware will ever pass that.

This is the practical case for profiling before scaling. Moving a few percent of work out of the serial path, for instance by removing a single global lock, splitting the input parse that runs before the main loop, or writing results in parallel, often beats doubling the hardware.

Gustafson's 14.8×: a different question, not a better answer

Gustafson's Law returns 14.8 times for the default inputs, roughly double the Amdahl figure. Both are correct. They answer different questions.

Amdahl holds the problem size fixed. You have a job of a set size and want it finished sooner. Gustafson holds the run time fixed and asks how much more work fits into that time if the problem grows along with the machine. The formula is (1 minus p) plus p times N. With the defaults that is 0.08 plus 0.92 times 16, so 0.08 plus 14.72, which is 14.8.

There is a subtlety the single input hides. In Gustafson's model, p is measured on the parallel machine: 92% of the time on 16 cores is spent in parallel work. Amdahl's p is measured on one core. Feeding one number into both formulas, as this page does, is a simplification. It is fine for a side-by-side sketch, but if you measured your fraction on a single core, the Amdahl line is the one that describes your run.

Gustafson suits jobs where a bigger machine is used for a bigger job: a simulation on a finer grid, a render at higher resolution, a model trained on more data. It does not describe an overnight batch of fixed size that simply needs to finish before morning.

Getting a believable parallel fraction for your own program

The page asks for p as a percentage, and it is the input people most often get wrong. It is not the share of source lines inside a parallel loop. It is the share of single-core run time spent in work that can actually be split.

The direct way is to time the whole run on one core, then time the sections that will run in parallel, and divide. If a 100 second job spends 92 seconds in a loop that can be split, p is 92%, which happens to be the default.

A second way works backwards from a test run. Measure the speedup S on a small core count N, then rearrange Amdahl: p equals (1 minus 1/S) divided by (1 minus 1/N). If 4 cores give you 3 times, p is (1 minus 1/3) over (1 minus 1/4), about 0.667 divided by 0.75, so roughly 89%. Entering 89% and 16 cores predicts 6.04 times with a ceiling of 9.09.

The back-calculated p already absorbs some overhead from the test run, so forecasts built on it tend to be more honest than a p taken from reading the code.

Overhead, shared memory bandwidth and other costs the formula skips

Both laws assume the parallel part divides perfectly and that adding a core costs nothing. Real systems pay for thread start-up, locking, cache misses and memory bandwidth that all the cores share. Past a certain count those costs can make a program slower as cores are added, and no line on this page can show that.

Treat the Amdahl figure as an upper bound for a fixed job. If you measure 6 times on 16 cores where the page says 7.27, the missing speed is overhead, not a wrong p. If you measure more than the page predicts, look for a superlinear effect such as the working set suddenly fitting in the combined caches, or a slow single-core baseline.

Hyperthreads need care. Two hardware threads on one physical core share its execution units, so typing the logical CPU count into N will overstate the result. Use physical cores unless you have measured that the extra threads help your workload.

Edge inputs: one core, zero percent and a fully parallel job

Set N to 1 and every line reads 1 times with 100% efficiency, as it should, since one core is the baseline everything else is compared with. The core count has to be a whole number of at least 1; anything else gets a message asking for one.

At 0% parallel, Amdahl and Gustafson both return 1 times and the ceiling is 1. Efficiency on 16 cores reads 6.25%, which is just 1 divided by 16: one core working and fifteen doing nothing.

At exactly 100% parallel, the calculator returns 16 times on 16 cores for both laws and 100% efficiency, and it drops the ceiling line, because with no serial part there is no finite ceiling. No real program gets there, though, because something always runs serially: start-up, loading input, gathering results. If your estimate is above 99%, re-check how you measured it before planning around it. A common slip is timing only the compute phase and forgetting the minutes spent reading input from disk or over the network.

Turning speedup into a core count and a cloud bill

A sensible routine is to enter your measured p, then step N through 2, 4, 8, 16 and 32 and watch the efficiency line. With the default 92% it goes 92.59%, 80.65%, 64.1%, 45.45% and 28.74%. Pick the point where the time saved by the next doubling is no longer worth what it costs you.

Efficiency maps directly onto cost when cores are billed by the hour. At 45.45% efficiency, the 16-core run uses about 2.2 times the core hours of a single-core run, in return for finishing 7.27 times sooner. Whether that is a good trade depends on whether wall-clock time or spend is your constraint.

For a job that grows with the hardware, look at the Gustafson line instead. Its efficiency stays high because the parallel work grows with N, which is why large scientific and training clusters keep scaling where a fixed workload would have stalled near its ceiling long before.