How to Use the Percentage Calculator
- Choose Calculation Type:
- What is X% of Y? — Ideal for discounts, sales tax, tips, and commission.
- X is what % of Y? — Ideal for Matric/FSc/University exam marks, budget shares, and completion rates.
- Percentage Increase / Decrease — Ideal for price hikes, salary increments, and profit/loss comparisons.
- Enter Your Two Numbers: Type values in X and Y (decimals and negative values are supported).
- Read Instant Breakdown: View the main answer along with the added (
+) and discounted (−) totals.
Core Percentage Formulas
1. Percentage of a Number ($X%$ of $Y$)
$$\text{Result} = \frac{X}{100} \times Y$$
2. Percentage Share ($X$ out of $Y$)
$$\text{Percentage} = \left(\frac{X}{Y}\right) \times 100$$
3. Percentage Change (From $X$ to $Y$)
$$\text{Percentage Change} = \left(\frac{Y - X}{|X|}\right) \times 100$$
Worked Examples
- Shopping Discount: An item costs 2,500 with a 15% discount: $0.15 \times 2,500 = \mathbf{375}$ off, leaving a final price of 2,125.
- Exam Marks: Scoring 425 out of 500 total marks: $(425 \div 500) \times 100 = \mathbf{85%}$.
- Price Hike: A product rises from 200 to 250: $[(250 - 200) \div 200] \times 100 = \mathbf{+25%\text{ increase}}$.
Assumptions & Limitations
- Calculations are exact up to standard floating-point precision and formatted cleanly for readability.
- In Percentage Change mode, the starting value ($X$) cannot be zero because division by zero is undefined.
Frequently Asked Questions
How do you calculate a percentage of a number?
Convert the percentage to a decimal by dividing by 100 and multiply by the base number: $(X \div 100) \times Y$.
How do I find what percentage one number is of another (such as exam marks)?
Divide the obtained score by the maximum total and multiply by 100: $(\text{Part} \div \text{Whole}) \times 100$.
How do you calculate percentage increase or decrease between two numbers?
Compute $\frac{\text{New Value} - \text{Old Value}}{\text{Old Value}} \times 100$. A positive answer indicates an increase; a negative answer indicates a decrease.