Skip to tool

Percentage Calculator

Inputs
ResultExample values
30

15% of 200 is 30.

Formula and source
result = P / 100 × XWikipedia · Percentage

How to calculate percentages

The calculator has five tabs. Basic finds P% of X, what percent X is of Y, the whole when X is P% of it, and X increased or decreased by P%. Change gives the percent change from A to B and the move needed to get back to A. Points separates percentage points from relative change. Reverse recovers an original value from a discounted price, a marked-up price or a share. Margin works out margin and markup from cost and price, or the price needed for a target margin or markup.

Percentage formulas

P% of X = P ÷ 100 × X. X as a percent of Y = X ÷ Y × 100. Percent change from A to B = (B − A) ÷ A × 100. After a drop of d, the gain needed to recover is d ÷ (1 − d), so a 50% drop needs a 100% gain, not another 50%. The original price before P% off is B ÷ (1 − P ÷ 100), so 80 after 20% off was 100. Markup is profit ÷ cost and margin is profit ÷ price.

Notes & conventions

Results are rounded half-up to at most four decimal places, with trailing zeros trimmed. Inputs accept a leading $, percent signs, and thousands separators, all of which are stripped before calculating; a percent field is read as the number you type (15 means 15%). Divide-by-zero cases — a zero total, a zero base, a 100%-off reverse, or a target margin of 100% or more — show an inline error instead of a number.

FAQ

How do I calculate a percentage of a number?

Divide the percentage by 100 and multiply by the number. 15% of 80 is 0.15 × 80 = 12. To add 15% to 80, multiply by 1.15 to get 92; to take 15% off, multiply by 0.85 to get 68.

How do I find what percent one number is of another?

Divide the part by the whole and multiply by 100. 18 out of 24 is 18 ÷ 24 × 100 = 75%. If the whole is 0 the result is undefined, and the calculator shows an error.

How do I calculate percent change or percentage increase?

Subtract the old value from the new value, divide by the old value and multiply by 100. From 50 to 65 is (65 − 50) ÷ 50 × 100 = +30%. From 65 back to 50 is −23.0769%, because the base is now 65.

What is the difference between a percentage point and a percent?

Going from 4% to 5% is a rise of one percentage point, but a 25% relative increase (1 ÷ 4). Use percentage points for the absolute gap between two rates, and percent change for how much one rate grew relative to the other. A drop from 50% to 40% is 10 percentage points, or a 20% relative decline.

How do I find the original price before a discount?

Divide, do not multiply. An item that costs 80 after 20% off has an original price of 80 ÷ (1 − 0.20) = 100, not 80 × 1.2 = 96. The Reverse tab does this division and also shows the common multiply mistake for contrast.

Is markup the same as margin?

No. Markup divides profit by cost; margin divides profit by price. For a cost of 40 and a price of 100 the same 60 profit is a 150% markup but a 60% margin.