Introduction
This Difference Calculator shows you how far apart two numbers are. Type a first value (A) and a second value (B), and the tool does the math for you. It works with whole numbers, decimals, negative numbers, and zero.
You get more than one answer, because "difference" can mean a few things:
- Absolute difference – the plain gap between A and B, with no plus or minus sign.
- Actual (signed) difference – shows if B went up or down from A.
- Percentage difference – compares the gap to the average of both numbers.
- Percentage change – how much A grew or shrank to become B (and the other way around).
- Ratios and the average – A to B, B to A, and the midpoint of the two.
Each answer comes with the math written out, so you can see how it was found. A step-by-step solution and simple bar charts help you check your work or study for a test. You can also add up to 10 more pairs in batch mode to compare many numbers at once, pick how many decimal places you want, and swap A and B with one click.
People use this tool to compare prices, test scores, sales, weights, temperatures, and any two numbers that need a quick, clear answer.
How to use our Difference Calculator
Type in two numbers and the calculator shows the difference between them, plus the percent difference, percent change, ratios, and average. It also gives you a step-by-step solution and charts.
Label for A: Give your first number a name, like "Price Before." This name shows up in the results. You can leave it blank.
Value A: Enter your first number, or the original value. You can use negatives, decimals, zero, or commas, like -12.5 or 1,250.75.
Label for B: Give your second number a name, like "Price After." If you leave it blank, it just says "Value B."
Value B: Enter your second number, or the new value. The same number rules apply here.
Swap A & B: Click this to trade places between your two numbers and their labels. The results update right away.
Decimal Places: Pick how many digits show after the decimal point, from 0 to 5. Use 0 for whole numbers, or try the Rounding Calculator for more rounding rules.
Thousands separators: Turn this on to show commas in big numbers, like 1,234.56. Turn it off for plain digits.
Scientific notation: Turn this on to shorten very big or very tiny numbers. It kicks in at 1×10¹² and above, or below 1×10⁻⁶. See our Scientific Notation Calculator to work with these forms directly.
Calculate: Click this to get your answers. The results also update as you type.
Reset: Click this to clear your work and go back to the sample numbers.
Additional Pairs (Batch Mode): Click "Add Another Pair" to compare up to 10 more sets of numbers at once. Fill in each Value A and Value B, then click "Calculate All" to see every result and a side-by-side chart.
What Is the Difference Between Two Numbers?
The difference between two numbers is how far apart they are. You find it by subtracting one number from the other. If you have 75 and 85, the difference is 10. That simple idea has a few useful forms, and each one answers a different question.
Absolute Difference
The absolute difference is the gap between two values with no plus or minus sign. You write it as |A − B|. For 75 and 85, it is 10. Use it when you only care how big the gap is, not which number is bigger.
Actual (Signed) Difference
The signed difference is B − A. It keeps the sign, so it tells you direction. A positive answer means B went up from A. A negative answer means B went down. For 75 to 85, the signed difference is +10, an increase.
Percentage Difference
Percentage difference compares the gap to the average of the two numbers:
|A − B| ÷ average of A and B × 100
It is symmetric. That means you get the same answer no matter which number you list first. Use it when neither number is the "starting" one, like comparing two lab readings or two store prices. If you are checking a measurement against a known correct value instead, the Percent Error Calculator is the better fit.
Percentage Change
Percentage change needs a starting value, called the baseline:
(new − old) ÷ |old| × 100
Going from 75 to 85 is a 13.33% increase. Going from 85 back to 75 is an 11.76% decrease. The two answers are not the same, because the baseline changed. Always say which number you started from. For one-way math, see the Percentage Increase Calculator and the Percentage Decrease Calculator. To measure change per unit of time or per step, try the Rate of Change Calculator.
Ratios and the Mean
A ratio shows the two numbers side by side in their smallest whole-number form. 75 and 85 becomes 15 : 17. The tool divides both sides by the greatest common factor to simplify. The mean, or average, is the midpoint: (75 + 85) ÷ 2 = 80. Need the middle value of a longer list instead? Use the Mean Median Mode Calculator.
When Percent Cannot Be Found
You cannot divide by zero. So if the baseline is 0, the percentage change has no answer. If the average of the two numbers is 0, the percentage difference has no answer either. In those cases, use the absolute or signed difference instead.
Where People Use This
- Money: sales growth, price cuts, pay raises, budget gaps, and year-over-year growth
- School and science: comparing test results or measurements to an expected value, or figuring a grade percentage
- Sports and games: score gaps and stat changes
- Health and weight: tracking change over weeks or months with the Weight Loss % Calculator
- Time and dates: for gaps between two dates or clock times, use the Date Duration Calculator or the Time Difference Calculator
Quick Tips
- Negative numbers are fine. Subtracting a negative adds: 5 − (−3) = 8.
- Percent change of +50% then −50% does not bring you back to the start.
- Round only at the end so small errors do not build up. The Sig Fig Calculator helps when precision matters.
- A big percent can still be a tiny amount, and a small percent can be a huge amount. Look at both. A plain Percentage Calculator is handy for spot checks.
- To spread differences across weighted items, see the Weighted Average Calculator.