Percentage Calculator
Calculate percentages, discounts, profit margins, sales tax, and bill splits in real-time.
What is P% of X?
Find Percentage PartX is what % of Y?
Find Relative RatioFrom X to Y Change
Growth & DeclineModify X ± P%
Number by P%X is P% of what?
Reverse Base CalculationShare: A vs (A + B)
Two-Part Proportion SplitPrecision Percentage Calculator & Margin Math Engine — Reference Guide
Comprehensive financial and arithmetic percentage engine computing percentage change, percentage difference, discount markups, profit margins, and step-by-step breakdown formulas.
Percentage calculations convert ratios into parts per hundred using three core formulas: (P / 100) × V for a percent of a number, (A / B) × 100 for exact share, and ((New − Old) / |Old|) × 100 for growth or decline. Compare percentage changes cleanly with browser-only decimal precision and step-by-step formulas.
Essential Percentage Formulas & Calculation Matrix Table
Core percentage calculation formulas, algebra syntax, sample numeric inputs, calculated outputs, and everyday commercial applications.
| Calculation Goal | Mathematical Formula | Example Input | Calculated Output | Everyday Application |
|---|---|---|---|---|
| What is P% of X? | (P / 100) * X | P = 15%, X = $80 | $12.00 | Calculating restaurant tipping, sales tax, standard promo discounts |
| What percentage is X of Y? | (X / Y) * 100 | X = 35, Y = 140 | 25.00% | Test grading scores, survey conversion rates, completion progress |
| Percentage Increase from A to B | ((New - Old) / Old) * 100 | Old = 50, New = 75 | +50.00% | Year-over-year revenue growth, stock price surge, inflation metrics |
| Percentage Decrease from A to B | ((Old - New) / Old) * 100 | Old = 120, New = 90 | -25.00% | Inventory clearance markdowns, web latency reductions, weight loss |
| Find Original Value Before P% Tax | Total / (1 + P / 100) | Total = $110, Tax = 10% | $100.00 | VAT/sales tax separation on gross invoice receipts, gross margin |
| Multiplier Factor for +P% | 1 + (P / 100) | Markup = 35% | 1.350x | Direct spreadsheet pricing formulas, algorithmic cost markup |
Key Parameters & Controls
| Parameter | Type / Unit | Description | Default |
|---|---|---|---|
| Calculation Mode | selection | Select calculation profile: Basic % of X, Percentage Change (V1 to V2), Discount & Tax, or Margin & Markup. | Basic |
| Primary Value (V1) | number | Initial base number, starting price, cost of goods sold, or numerator. | 100 |
| Secondary Value (V2) | number | Target comparison number, selling price, discount rate, or denominator. | 20 |
| Decimal Precision | integer | Number of decimal places displayed for rounding floating-point results. | 2 |
Pro Tips & Best Practices
Gross Margin = ((Selling Price - Cost) / Selling Price) * 100%, whereas Markup = ((Selling Price - Cost) / Cost) * 100%. A 50% markup equals a 33.3% gross margin.
Percentage Change = ((V2 - V1) / |V1|) * 100%. If V2 > V1, the change is an increase (+); if V2 < V1, the change is a decrease (-).
Mathematical percentage change from 0 to any non-zero number is undefined (infinite increase). Our engine guards against NaN outputs by alerting users to invalid zero baselines.
Common Gotchas & Troubleshooting
⚠️Result showing NaN or Infinity
Ensure the base value V1 is not zero when calculating percentage increase or decrease.
⚠️Cumulative discount mismatch (e.g. 20% off plus additional 10% off)
Sequential discounts apply multiplicatively (1 - 0.20) * (1 - 0.10) = 0.72 (28% total discount), not additively (30%).
Frequently Asked Questions
What is the difference between percentage points and percentage change?▼
Percentage points represent the arithmetic difference between two percentages (e.g. 10% to 15% is a 5 percentage point increase), whereas percentage change measures relative growth ((15 - 10) / 10 = 50% increase).
How do I calculate sales tax and final price?▼
Multiply the pre-tax price by (1 + Tax Rate / 100). For example, $100 with 8% sales tax equals $100 * 1.08 = $108.
Does this calculator handle negative numbers correctly?▼
Yes. The standard absolute value denominator formula ((V2 - V1) / |V1|) ensures accurate directional change calculations even with negative starting values.
Can I use this for calculating commercial profit margins?▼
Yes, our dedicated Margin & Markup tab breaks down cost, selling price, gross profit, margin percentage, and markup percentage simultaneously.
Related Tools & Utilities
All Tools →Calculate statistical sample size and margin of error for surveys or A/B tests with Cochran formula, finite population correction, and confidence interval curves.
Browser scientific calculator with trigonometry (sin, cos, tan), inverse/hyperbolic functions, log/ln, factorials, and memory.
Modular arithmetic calculator to solve mod equations, modular inverse, powers, and congruences. Step-by-step Euclidean algorithm and clock math visualizer.
Calculate log, natural log (ln), and log base 2 instantly with any base. Free logarithm calculator with step-by-step change of base formulas and antilog solver.
Solve quadratic equations using this quadratic formula calculator and root finder. Find real or complex roots, discriminant, vertex, and exact radical steps.
Calculate confidence intervals and margin of error for sample means and proportions using Z or Student's t distribution. Interactive curves and sample size solver.