Staaarter

Reverse Percentage Calculator

Calculates the original number from a result value and the percentage that result represents of the original, answering questions like 'if $120 is 80% of a number, what is the number?' A free online tool from Staaarter, right in your browser.

By Staaarter Team
calculatorpercentage
Runs locallyUpdated 2026-08-05

Overview

Introduction

"$120 is 80% of what number?" is a common question when you know a partial result but need to recover the whole it came from, like an original price before a discount.

This calculator takes the result you have and the percentage it represents, and instantly works out the original number.

What Is Reverse Percentage Calculator?

A calculator that reverses the usual percentage calculation, starting from a result and a percentage and recovering the original number those two values came from.

It runs entirely client-side as part of this site's Math Tools collection, so nothing you enter is ever uploaded to a server.

How Reverse Percentage Calculator Works

The percentage is divided by 100 to convert it to a decimal fraction, then the result value is divided by that fraction to recover the original number.

The calculation happens synchronously in JavaScript the moment you change either input, with no network round trip involved.

When To Use Reverse Percentage Calculator

Use it whenever you know a partial or final value and the percentage it represents, but need to find the whole number it was derived from, an original price before a discount, or a full amount before a fee was deducted.

It's the natural tool to reach for whenever a normal percentage question feels backwards.

Features

Advantages

  • Instant results as you type, with no submit button or network delay.
  • Works correctly for percentages over 100% as well as the common 0-100% case.
  • Simple, single-purpose interface: enter a result and a percentage, get the original number.

Limitations

  • Only answers the reverse 'result is X% of what number' question, use the main Percentage Calculator for the forward direction.
  • Relies on standard JavaScript floating-point arithmetic, which is precise enough for everyday use but not intended for high-precision financial or scientific computation.

Examples

Finding the original price

Input

Result value: 120, Percentage: 80

Output

150

120 / (80 / 100) = 120 / 0.8 = 150.

A result larger than the original

Input

Result value: 60, Percentage: 150

Output

40

60 / (150 / 100) = 60 / 1.5 = 40, less than the result since the percentage exceeds 100%.

Best Practices & Notes

Best Practices

  • Double-check that the value you're entering is genuinely the result, not the original, feeding this tool the wrong value swaps the direction of the calculation.
  • For financial calculations involving money, round the final result to two decimal places yourself according to your currency's convention.

Developer Notes

Implemented as `resultValue / (percent / 100)` on plain JavaScript numbers, with an explicit check that rejects a zero percentage before dividing; the display value is rounded to 6 decimal places with trailing zeros trimmed via the shared `trimmedRound` helper.

Reverse Percentage Calculator Use Cases

  • Finding an item's original price before a known discount percentage was applied
  • Working out a pre-tax or pre-fee amount when you only know the final total and the tax or fee percentage
  • Recovering a full dataset size when you only know a sample size and what percentage of the whole it represents

Common Mistakes

  • Entering the original number instead of the result, which is exactly what the main Percentage Calculator is for.
  • Forgetting that a percentage over 100% is valid and simply means the original number is smaller than the result.

Tips

  • If you instead know the original number and a percentage and need the result, use the main Percentage Calculator.
  • If you're comparing two known values to find what percent one is of the other, use the Percentage Of Calculator instead.

References

Frequently Asked Questions