Compare Two Values
Enter two numbers to calculate their percentage difference, absolute difference, average, and more.
Calculation Results
The two values differ by 22.22% of their average.
Step-by-Step Calculation
Step 1: Find the absolute difference: |80 − 100| = 20
Step 2: Find the average: (80 + 100) ÷ 2 = 90
Step 3: Divide the difference by the average: 20 ÷ 90 = 0.2222
Step 4: Multiply by 100: 0.2222 × 100 = 22.22%
Percentage Difference Formula
Percentage difference compares two values by dividing their absolute difference by the average of the values, then multiplying by 100.
Percentage Difference =
|Value A − Value B| ÷ ((|Value A| + |Value B|) ÷ 2) × 100
This calculator uses the average of the absolute values as the denominator, so it can also handle negative inputs symmetrically. If both inputs are zero, the percentage difference is undefined.
Frequently Asked Questions
What is percentage difference?
Percentage difference shows how far apart two values are relative to their average. It is useful when neither number is considered the original or starting value.
How do you calculate percentage difference?
Subtract one value from the other and take the absolute result. Divide it by the average of the two values, then multiply by 100 to express the result as a percentage.
What is the difference between percentage difference and percentage change?
Percentage difference compares two values equally using their average. Percentage change measures movement from a specific starting value, so the result depends on which value is the baseline.
Does the order of the numbers matter?
No. Percentage difference is symmetric, so switching the two values produces the same result. Percentage change is directional and can produce a different result when the order is reversed.
Can percentage difference be more than 100%?
Yes. When comparing positive values, the result can approach 200% if one value is much larger than the other. The exact result depends on the size of both values and their average.
Can I calculate percentage difference with zero?
If one value is zero and the other is nonzero, the calculation can return 200% using the average-of-magnitudes formula. If both values are zero, the denominator is zero and the result is undefined.
Can I use this calculator for prices and currencies?
Yes. Select Currency and choose the matching currency for both values. The tool formats the displayed amounts but does not convert between currencies or retrieve live exchange rates.
Is percentage difference the same as percentage error?
No. Percentage error generally compares a measured value with an accepted or reference value. Percentage difference treats the two compared values as peers. Use the formula that matches your context.
Note: This tool performs a mathematical comparison only. Currency selection changes the display format; it does not convert values using exchange rates.
How to Calculate Percentage Difference
The formula is:
Percentage Difference=(∣A∣+∣B∣)/2∣A−B∣×100
Where:
- A is the first value.
- B is the second value.
- |A − B| is the absolute difference.
- The denominator is the average of the values’ magnitudes.
Example: Suppose one product costs $80 and another costs $100.
- Find the absolute difference: $100 − $80 = $20.
- Calculate the average: ($80 + $100) ÷ 2 = $90.
- Divide the difference by the average: $20 ÷ $90 = 0.2222.
- Multiply by 100: 0.2222 × 100 = 22.22%.
The percentage difference is 22.22%.
Percentage Difference vs. Percentage Change
These calculations answer different questions.
| Percentage difference | Percentage change |
|---|---|
| Compares two values equally | Compares a new value with a baseline |
| Uses the average magnitude as its base | Uses the original value as its base |
| Does not depend on the order | Depends on the order |
| Common for independent measurements | Common for before-and-after comparisons |
For example, comparing 80 and 100 gives a percentage difference of 22.22%. If a value increases from 80 to 100, the percentage change is 25%. If it decreases from 100 to 80, the percentage change is −20%.
How to Use the Calculator
- Enter the first and second values.
- Select plain numbers or currency.
- If using currency, select the relevant currency code.
- Choose the number of decimal places.
- View the result, supporting calculations, and step-by-step explanation.
- Use Copy Results to copy the calculation for your records.
The currency selector only changes how values are displayed. It does not convert between currencies or use live exchange rates.
When Should You Use This Calculation?
You can use the formula to compare:
- Prices of similar products
- Two salary offers
- Measurements from separate instruments
- Survey results from different groups
- Estimated and observed quantities when neither is designated as the baseline
- Costs or financial figures expressed in the same currency
If you are measuring how much a value increased or decreased over time, use percentage change instead.