Compare Two Values

Enter two numbers to calculate their percentage difference, absolute difference, average, and more.

Enter the first number
Enter the second number

Calculation Results

Percentage Difference 22.22%
Absolute Difference 20
Average of Both Values 90
Percentage Change (A to B) 25.00%
First Value as % of Second 80.00%
Second Value as % of First 125.00%
Value Ratio (A : B) 4 : 5
Difference as a Decimal 0.2222

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∣(∣A∣+∣B∣)/2×100\text{Percentage Difference} = \frac{|A-B|}{(|A|+|B|)/2}\times100Percentage Difference=(∣A∣+∣B∣)/2∣A−B∣​×100

Where:

Example: Suppose one product costs $80 and another costs $100.

  1. Find the absolute difference: $100 − $80 = $20.
  2. Calculate the average: ($80 + $100) ÷ 2 = $90.
  3. Divide the difference by the average: $20 ÷ $90 = 0.2222.
  4. 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 differencePercentage change
Compares two values equallyCompares a new value with a baseline
Uses the average magnitude as its baseUses the original value as its base
Does not depend on the orderDepends on the order
Common for independent measurementsCommon 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

  1. Enter the first and second values.
  2. Select plain numbers or currency.
  3. If using currency, select the relevant currency code.
  4. Choose the number of decimal places.
  5. View the result, supporting calculations, and step-by-step explanation.
  6. 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:

If you are measuring how much a value increased or decreased over time, use percentage change instead.

Leave a Reply

Your email address will not be published. Required fields are marked *