Percentage calculator: what it works out and who it’s for
The Davided percentage calculator solves two questions at once from the same two fields. You enter a percent and a number, and it returns: how much that percent of the number is, and what percentage of that number the value you typed represents. Those are the two most common percentage questions — discounts, commissions, margins, test scores, shares of a total — handled in a single calculation.
This percentage calculator helps when you’re shopping (how much you save after a discount), at work (commission, share of a budget), at school (what percent of the tasks are done), and anywhere you need a proportion fast. Wondering how to calculate a percentage without doing the math in your head? Type two numbers and the calculator does the rest — instantly, no button to press.
How to use the calculator
- In the Percent (%) field, enter the percentage you care about — say 20.
- In the Number field, enter the value you’re taking the percentage of — say 150.
- The result appears immediately.
You get two results from the same inputs:
- X% of the number — for example, 20% of 150.
- X as a percentage of the number — what share of the number your entered percent represents when treated as a plain value.
The percent can be negative (a drop or a discount) — then the result is negative too. If you enter 0 in the Number field, the calculator avoids dividing by zero and the second result shows 0.
How the percentage calculator works: the formulas
How to calculate X% of a number
The basic formula for a percentage of a number:
X% of Y = (X / 100) × Y
Divide the percent by 100 (turn it into a decimal), then multiply by the number. For example, 20% becomes 0.2, and you multiply that by the value.
What percentage of a number Y is the value X
The reverse question — what share of the whole a given value makes up:
(X / Y) × 100 = result in %
Divide the part by the whole and multiply by 100. It’s the same calculation you use for “what percent of the tasks did I finish” or “what’s this as a share of the budget.”
The calculator computes both formulas at once and rounds to two decimal places.
Step-by-step examples
Example 1: what is 20% of 150
- Percent: 20, Number: 150.
- (20 / 100) × 150 = 0.2 × 150 = 30.
- Second result: (20 / 150) × 100 = 13.33% — so 20 is 13.33% of 150.
Example 2: a 7.5% discount on 1,200
- Percent: 7.5, Number: 1,200.
- (7.5 / 100) × 1,200 = 0.075 × 1,200 = 90.
- The discount is 90, so after the markdown you pay 1,200 − 90 = 1,110.
Example 3: a 15% decrease
- Percent: −15, Number: 200.
- (−15 / 100) × 200 = −0.15 × 200 = −30.
- A negative percent gives a negative result: the value changes by −30.