How we calculate: formulas, conventions and test cases

Every calculator on this site runs on one small engine. These are its formulas and conventions, how it rounds, and the 43 test cases it must pass before any page is published.

Page checked on November 21, 2026.

Formulas

MeasureFormula
Percentage change(new - old) / old x 100
With a negative starting value(new - old) / |old| x 100
Percent difference|a - b| / ((a + b) / 2) x 100
Percent error|measured - accepted| / |accepted| x 100
Percentage point changenew_rate - old_rate (both already percentages)
Add or subtract a percentagevalue x (1 + p/100); value x (1 - p/100)
Reverse percentageoriginal = new / (1 + p/100); original = new / (1 - p/100), not defined when p = 100
CAGR(end / start)^(1 / years) - 1
Annualized change((later / earlier)^(m / n) - 1) x 100, where m = periods per year and n = periods elapsed
Successive changes(product of (1 + p_i/100) - 1) x 100
Loss recoveryrequired gain = 1 / (1 - loss/100) - 1
Real change(1 + nominal) / (1 + inflation) - 1
Lower-is-better improvement(old_time - new_time) / old_time x 100; (old_time / new_time - 1) x 100
Log changeln(new / old) x 100 (log points)

Conventions

  • Zero starting value: no percentage change is shown. The calculators say it is not defined and give the absolute change. From zero to zero is no change.
  • Negative starting value: the change is divided by the size of the starting value, a convention also used by CalculatorHub.com, so a rise reads as positive. The result panel always shows the absolute change and what a plain spreadsheet formula would give.
  • Percent difference: divides by the average of the two values. The other denominators in use are shown beside it.
  • CAGR: needs a start above zero and an end of zero or more, as Google's RRI does. Dates are turned into years as exact days divided by 365.25.
  • Percentage points: a basis point is one hundredth of a percentage point, a market convention.

Rounding and number formats

The engine calculates in full double precision from the numbers you type and rounds only for display: percentages to two decimal places, multipliers to six significant figures, money to the cent. Where a page shows a difference between two displayed figures, it is computed from the rounded figures, so the arithmetic on the page adds up.

Rounding is half away from zero, done in a way that avoids binary floating point slips: the change from 0.1 to 0.3 shows as 200.00%, not a hair under. Pages are built with a decimal point; in your browser you can switch to a decimal comma, and the calculators read grouped numbers such as 1,234.5 or 1.234,5.

Test cases

The engine must reproduce each result below to the precision it is written to, and each published figure at the source's own rounding. 31 are official worked examples, 3 are calculator site examples used only to check a convention, and 9 are cases we constructed ourselves to cover edges such as zero, negative values and floating point.

CaseWhat it checksOur engineSource showsLabelSource
1Percentage change from 277.948 to 278.8020.307251720.3Official worked exampleUS Bureau of Labor Statistics, Calculating percent changes (CPI factsheet)
2Percentage change from 278.802 to 296.7976.454401336.5Official worked exampleUS Bureau of Labor Statistics, Calculating percent changes (CPI factsheet)
3Average of 12 monthly index values270.96975270.970 (sum 3251.637)Official worked exampleUS Bureau of Labor Statistics, Calculating percent changes (CPI factsheet)
4Percentage change from 270.97 to 292.6558.002730938.0Official worked exampleUS Bureau of Labor Statistics, Calculating percent changes (CPI factsheet)
5Percentage change from 239.261 to 240.2360.407504780.4 (ratio 0.004075)Official worked exampleUS Bureau of Labor Statistics, Math calculations to better utilize CPI data (Perrins and Nilsen)
6Percentage change from 237.805 to 240.2361.022266141.0 (ratio 0.01022)Official worked exampleUS Bureau of Labor Statistics, Math calculations to better utilize CPI data (Perrins and Nilsen)
7Percentage change from 712.357 to 719.6411.022521011.0 (ratio 0.01022)Official worked exampleUS Bureau of Labor Statistics, Math calculations to better utilize CPI data (Perrins and Nilsen)
8Percentage change from 112.5 to 121.588.0 (9 points)Official worked exampleUS Bureau of Labor Statistics, CPI technical notes, Table 1
9Percentage change from 225 to 24388.0 (18 points)Official worked exampleUS Bureau of Labor Statistics, CPI technical notes, Table 1
10Percentage change from 110 to 12816.3636363616.4 (18 points)Official worked exampleUS Bureau of Labor Statistics, CPI technical notes, Table 1
11Percentage change from 2,342 to 2,5006.746370620.06746 / 6.75%Official worked exampleMicrosoft Support, Calculate percentages (Excel)
12Percentage change from 2,500 to 2,425-3-0.03000 / -3.00%Official worked exampleMicrosoft Support, Calculate percentages (Excel)
13113 changed by 25%141.25$141.25Official worked exampleMicrosoft Support, Calculate percentages (Excel)
14113 changed by -25%84.75$84.75Official worked exampleMicrosoft Support, Calculate percentages (Excel)
15Whole when 15 is 75% of it20$20.00Official worked exampleMicrosoft Support, Calculate percentages (Excel)
16Original before a 20% change to 180150n/aOur constructed caseOurs
17Original before a -30% change to 70100n/aOur constructed caseOurs
18Quarterly change from 10,493.1 to 10,597.10.99112750.9911 (1.0 rounded)Official worked exampleUS Bureau of Economic Analysis, FAQ: How is the percent change at an annual rate calculated?
19Annual rate of a move from 10,493.1 to 10,597.1 in 1 of 4 periods a year4.023840454.0237 (4.0 rounded)Official worked exampleUS Bureau of Economic Analysis, FAQ: How is the percent change at an annual rate calculated?
20Growth rate per period, 2 to 4 over 3 periods0.25992104990.2599210499Official worked exampleGoogle Docs Editors Help, RRI function
21Growth rate per period, 10 to 3 over 10.5 periods-0.1083343751-0.1083343751Official worked exampleGoogle Docs Editors Help, RRI function
22Growth rate per period, 10 to 0 over 1 period-1-1Official worked exampleGoogle Docs Editors Help, RRI function
23Growth rate per period, 10,000 to 11,000 over 96 periods0.00099330740.0009933Official worked exampleMicrosoft Support, RRI function
24Growth rate per period, 10,000 to 11,000 over 8 periods0.01198502410.012 / 1.2% (Microsoft's description)Official worked exampleMicrosoft Support, RRI function
25Point change from 10% to 9%-1falls 1 percentage point to 9%Official worked exampleOffice for National Statistics service manual, Percentages
2610 changed by -1%9.9a fall of 1% gives 9.9%Official worked exampleOffice for National Statistics service manual, Percentages
2740,000 moved from an index of 218.056 to 195.335,825.65946362$35,826Official worked exampleUS Bureau of Labor Statistics, Math calculations to better utilize CPI data (Perrins and Nilsen)
2845,000 moved from an index of 237.017 to 195.337,079.61876152$37,080Official worked exampleUS Bureau of Labor Statistics, Math calculations to better utilize CPI data (Perrins and Nilsen)
29Nominal and real change, 35,000 to 45,000, index 195.3 to 237.017nominal 28.571429%, real 5.941768%nominal 'an increase of 29 percent'; real 'slightly less than 6 percent'Official worked exampleUS Bureau of Labor Statistics, Math calculations to better utilize CPI data (Perrins and Nilsen)
30Purchasing power, 232.957 as a share of 236.73698.4037070898.4%Official worked exampleUS Bureau of Labor Statistics, Math calculations to better utilize CPI data (Perrins and Nilsen)
31500 moved from an index of 237.805 to 240.236505.11133071$505.11Official worked exampleUS Bureau of Labor Statistics, Math calculations to better utilize CPI data (Perrins and Nilsen)
32Percent difference between 10 and 65050%Calculator site example, used to check a conventioncalculator.net percent calculator
33Percentage change from -25 to 25200200%Calculator site example, used to check a conventionCalculatorHub.com percentage change calculator (source checked 2026-11-21)
34Percentage change from -10 to -25-150-150%Calculator site example, used to check a conventionCalculatorHub.com percentage change calculator (source checked 2026-11-21)
35Percentage change from 0 to 5Not defined; absolute change 5n/aOur constructed caseOurs
36Percentage change from 0 to 00n/aOur constructed caseOurs
37Percent difference between 5 and -5Not defined; size-based variant 200%n/aOur constructed caseOurs
38Net effect of +10% then -10%-1n/aOur constructed caseOurs
39Gain needed after a 50% loss100n/aOur constructed caseOurs
40Time saved and speed gained, 60 to 50time 16.666667%, speed 20%n/aOur constructed caseOurs
41Percentage change from 0.1 to 0.3200n/aOur constructed caseOurs
42Percentage change from 229.815 to 232.9451.361965061.4Official worked exampleUS Bureau of Labor Statistics, CPI escalation factsheet
43Percentage change from 180 to 1905.555555565.6Official worked exampleUS Bureau of Labor Statistics, K-12 graphing inflation activity

Where our engine and a source differ at the last digit, it is because the source rounded an intermediate step. The BEA, for example, rounds the quarterly GDP ratio before raising it to the fourth power, which moves the fourth decimal of the annual rate; the annualized change page shows both.

Sources and how often we check them

Software help pages (Microsoft and Google) are rechecked every six months, and statistics agency pages once a year. Outbound links are checked monthly. The build refuses to publish if a source is badly overdue. Changes are listed on the changelog.