CalculatorHub
EMI CalculatorBMI CalculatorAge CalculatorDate CalculatorTime CalculatorBMR CalculatorCalorie CalculatorIdeal Weight Calculator
Basic CalculatorScientific CalculatorDifference CalculatorUnit ConverterPercentage CalculatorFraction Calculator
P&L PlannerFundamental Growth CalculatorRisk : Reward RatioAverage Price CalculatorTarget / Stop-Loss %EMA Distance & SafetyMutual Fund CalculatorFibonacci Retracement CalculatorPivot Point Calculator
GST Number ValidatorNormal GST CalculatorReverse GST CalculatorLate Fee CalculatorGST Interest CalculatorITC Calculator
CalculatorHub
EMI CalculatorBMI CalculatorAge CalculatorDate CalculatorTime CalculatorBMR CalculatorCalorie CalculatorIdeal Weight Calculator
Basic CalculatorScientific CalculatorDifference CalculatorUnit ConverterPercentage CalculatorFraction Calculator
P&L PlannerFundamental Growth CalculatorRisk : Reward RatioAverage Price CalculatorTarget / Stop-Loss %EMA Distance & SafetyMutual Fund CalculatorFibonacci Retracement CalculatorPivot Point Calculator
GST Number ValidatorNormal GST CalculatorReverse GST CalculatorLate Fee CalculatorGST Interest CalculatorITC Calculator
CalculatorHub
DailyMathTradingGST
← Back to math calculators

Difference Calculator

Compare two numbers (positive or negative) and see how different they are

Your numbers

Mode

Results

Enter two numbers above and the results will update instantly.

How this calculator works

Comparing two numbers can mean three different things depending on context, and this calculator shows all three simultaneously. Enter two values — A and B — and you instantly see the absolute difference (by how much they differ), the percentage change from A to B (directional), and the percentage difference (symmetric, direction-neutral).

A toggle lets you swap between "A to B" and "B to A" for the percentage change calculation without re-entering the numbers. The result panel also shows a plain English explanation of each metric so the distinction is always clear.

The formulas

Absolute difference: |A − B|

Percentage change: ((B − A) ÷ |A|) × 100

Percentage difference: (|A − B| ÷ ((A + B) ÷ 2)) × 100

  • A — The starting / reference value
  • B — The ending / comparison value
  • |A| — Absolute value of A (handles negative starting values correctly)
  • Percentage difference uses the average of A and B as the base, so it is symmetric

Worked example

A stock was priced at ₹540 on Monday and ₹612 on Friday.

  • Absolute difference: |540 − 612| = ₹72
  • Percentage change (Mon → Fri): ((612 − 540) ÷ 540) × 100 = +13.33% (increase)
  • Percentage difference: (72 ÷ ((540 + 612) ÷ 2)) × 100 = (72 ÷ 576) × 100 = 12.5%

The percentage change (13.33%) and the percentage difference (12.5%) are different numbers for the same two values — the choice of which to use depends on whether the direction and starting point matter for your analysis.

Practical tips and common mistakes

  • Use percentage change for before/after comparisons. If A is a clearly defined "old" or "starting" value and B is the new value, percentage change is the right metric. It has a direction (positive = increase, negative = decrease) and the starting point is the base. This is what most financial, scientific and academic reports mean when they say "X% change".
  • Use percentage difference when both values are peers. If you are comparing two independent measurements — two suppliers' prices, two students' scores — neither is a "base", so percentage change is misleading. Percentage difference treats both values symmetrically and gives the same number regardless of which is A and which is B.
  • Negative starting values can produce counterintuitive % change results. If A = −50 and B = −25, percentage change = ((−25 − (−50)) ÷ |−50|) × 100 = +50%. The absolute value in the denominator ensures the sign of the result correctly reflects the direction of change even when the base is negative.

Related calculators

If you need the percentage of a number rather than the difference between two numbers, use the Percentage Calculator. For scientific or engineering comparisons that require logarithms or powers, the Scientific Calculator handles those expressions directly.

Calculator Hub — free calculators, no sign-up needed.
HomeDailyMathTradingGSTAboutPrivacyFAQFeedbackSitemap