Sumivo · Mathematics

Percentage Change Calculator

Compare a new value with the absolute magnitude of its original value.

01 / INPUTS

value
value

02 / RESULT

Percentage change

+25%

Summary

Percentage change
+25%
Absolute change
+25

Calculation trace

  1. 125 − 100 = 25
    +25
    Absolute change
  2. (25 ÷ |100|) × 100 = 25%
    +25%
    Percentage change

Maintained by Jack Shi

§

How it works

Percent change = (new − old) ÷ |old| × 100. A positive result is an increase and a negative result a decrease, measured against the magnitude of the original value.

Assumptions & limits

  • Sumivo’s stated convention for negative baselines divides by |old|, the magnitude of the old value. BLS supports only the ordinary positive-baseline formula; it does not establish this extension.
  • The old value cannot be zero (division by zero).

Verified runs

Synthetic examples executed at build revision be2e0e4 on . Cards round decimal results to 6 significant figures; matching uses full precision and the tolerance below. Matches cover the displayed fields, not every possible input or clinical or engineering validation.

  • Inputs: Original value: 100 same units; New value: 125 same units

    Result: Percentage change: 25 % (expected Percentage change: 25 %) ✓

  • Inputs: Original value: 20 same units; New value: 0 same units

    Result: Percentage change: -100 % (expected Percentage change: -100 %) ✓

  • Inputs: Original value: 80 same units; New value: 60 same units

    Result: Percentage change: -25 % (expected Percentage change: -25 %) ✓

  • Inputs: Original value: -100 same units; New value: -50 same units

    Result: Percentage change: 50 % (expected Percentage change: 50 %) ✓

How these runs were checked

Method: percentage-change@1.0.0. Expectations come from the listed test fixtures or hand arithmetic; they are not copied from these executions. Omitted optional inputs use the method defaults. Run dates record execution, not expert review or fresh measurements.

Download all verified runs (JSON) — full inputs, returned values, expectations, timestamps and buildRevision.

  • normal: . Absolute tolerance: 1e-10. Text and booleans match exactly. Full-precision result: Percentage change: 25 %. Expected: Percentage change: 25 %. Expectation: packages/calculator-core/tests/percentage-change.test.ts
  • boundary: . Absolute tolerance: 1e-10. Text and booleans match exactly. Full-precision result: Percentage change: -100 %. Expected: Percentage change: -100 %. Expectation: packages/calculator-core/tests/percentage-change.test.ts
  • sensitivity: . Absolute tolerance: 1e-10. Text and booleans match exactly. Full-precision result: Percentage change: -25 %. Expected: Percentage change: -25 %. Expectation: packages/calculator-core/tests/percentage-change.test.ts
  • signed: . Absolute tolerance: 0. Text and booleans match exactly. Full-precision result: Percentage change: 50 %. Expected: Percentage change: 50 %. Expectation: Hand arithmetic: Sumivo convention: (−50 − (−100)) ÷ |−100| × 100 = 50%.

Reproduce from the source checkout with pnpm --filter @sumivo/web gen:verified-runs. A rebuild changes execution times; the revision identifies its Git starting point, including any uncommitted changes made for that build.

§

FAQ

Is a negative result a decrease?
Yes. A positive percent is an increase from the old value; a negative percent is a decrease.
§

SOURCES