Staaarter

Percentage Of Calculator

Calculates what percent a value is of a total, the 'A is what percent of B' question, by dividing the value by the total and multiplying by 100. A free online tool from Staaarter, right in your browser.

By Staaarter Team
calculatorpercentage
Runs locallyUpdated 2026-08-05

Overview

Introduction

"30 out of 200, what percent is that?" comes up constantly, in test scores, survey results, budgets, and sales figures.

This calculator converts any value-and-total pair into a percentage instantly, without you having to do the division and multiplication by hand.

What Is Percentage Of Calculator?

A calculator that finds what percent a value represents out of a total, by dividing the value by the total and multiplying the result by 100.

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 Percentage Of Calculator Works

The value is divided by the total to get a decimal fraction, then that fraction is multiplied by 100 to express it as a percentage.

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

When To Use Percentage Of Calculator

Use it whenever you have a part and a whole and need to express the part as a percentage, a test score, a completed task count, or a portion of a budget spent.

It's the natural companion to the Percentage Calculator when you're working backward from two raw numbers instead of a known percentage.

Features

Advantages

  • Instant results as you type, with no submit button or network delay.
  • Handles negative values and totals correctly, following normal division rules.
  • Simple, single-purpose interface: enter a value and a total, get the percentage.

Limitations

  • Cannot compute a result when the total is zero, since that requires dividing by zero.
  • 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 what percent 30 is of 200

Input

Value (A): 30, Total (B): 200

Output

15%

(30 / 200) x 100 = 0.15 x 100 = 15%.

A value larger than the total

Input

Value (A): 250, Total (B): 200

Output

125%

(250 / 200) x 100 = 1.25 x 100 = 125%, more than 100% since the value exceeds the total.

Best Practices & Notes

Best Practices

  • Make sure the value goes in the 'Value (A)' field and the whole amount goes in 'Total (B)', swapping them gives a very different answer.
  • For financial or reporting figures, round the final percentage to a sensible number of decimal places for your audience.

Developer Notes

Implemented as `(value / total) * 100` on plain JavaScript numbers, returning a discriminated union so a zero total surfaces as `{ success: false, error }` instead of `Infinity` or `NaN`; the display value is rounded with `trimmedRound` from the Percentage Calculator's lib so whole-number results don't show trailing zeros.

Percentage Of Calculator Use Cases

  • Finding a test or quiz score as a percentage of total points
  • Expressing a budget line item as a percentage of the overall budget
  • Reporting a completion count, like tasks done, as a percentage of the total tasks

Common Mistakes

  • Mixing up the value and the total, which inverts the meaning of the result.
  • Forgetting that a value larger than the total is valid and produces a percentage over 100%.

Tips

  • If you instead know the percentage and need to find a portion of a number, use the Percentage Calculator.
  • If you're comparing an original amount to a new amount over time rather than a part to a whole, use the Percentage Change Calculator instead.

References

Frequently Asked Questions