Percentage calculator
Percent means "per hundred." 25% is 25 out of 100, or 0.25 as a decimal, or 1/4 as a fraction. Percent change isn't the same as percentage point change—going from 20% to 30% is a 10 percentage point increase but a 50% relative increase. The difference matters in news headlines and data.
API example
Same result via GET request (use current inputs above):
curl -s "https://howdeedo.com/api/calc/percentage?operation=percentOf&percent=18&value=47.5"fetch("https://howdeedo.com/api/calc/percentage?operation=percentOf&percent=18&value=47.5").then(r => r.json())Good to know
Percent change vs percentage point change. If a politician's approval rating goes from 40% to 50%, that's a 10 percentage point increase, but a 25% relative increase (10/40 = 0.25). Media often conflates these. "Support doubled from 10% to 20%" is a 100% increase but only a 10 percentage point change. Always ask: percentage points or percent change?
Reverse percentages (what was the original?). If something is now $80 after a 20% discount, the original price was $100 ($80 ÷ 0.8). Work backwards: divide the final amount by (1 - discount rate). If you know the final and the percent change, you can find the original. Useful for sales, taxes, and markups.
Compounding percentage changes don't add. A 10% increase followed by a 10% decrease doesn't return you to the starting point. If you start at 100, +10% gives 110, then -10% gives 99 (not 100). Each percentage is applied to the current value, not the original. This is why market "corrections" after gains still leave you ahead—or behind, if you started with a loss.
Methodology
percentage-operations — percentOf: value × (percent/100). percentChange: ((to−from)/from) × 100. whatPercentOf: (part/whole) × 100. compoundChange: applies changes multiplicatively. CAGR: ((endValue/startValue)^(1/years) − 1) × 100. markup: cost × (1 + markup%/100). margin: (profit/sellingPrice) × 100.
Assumptions
- Standard percentage formulas; no rounding in core.
- Compound changes are applied multiplicatively in sequence.
- CAGR assumes values are positive; doubling time uses Rule of 72.
- Markup is based on cost; margin is based on selling price.
Calculation version: 0.1.0
References
Disclaimers & sources
Standard percentage formulas for reference and comparison.