Skip to content
Home Interview Percentage Problems Explained — Formulas, Tricks and Interview Questions

Percentage Problems Explained — Formulas, Tricks and Interview Questions

Where developers are forged. · Structured learning · Free forever.
📍 Part of: Aptitude → Topic 2 of 14
Master percentage problems from scratch — learn core formulas, real-world shortcuts, and solve interview aptitude questions with confidence.
🧑‍💻 Beginner-friendly — no prior Interview experience needed
In this tutorial, you'll learn
Master percentage problems from scratch — learn core formulas, real-world shortcuts, and solve interview aptitude questions with confidence.
  • Every percentage problem is one of three things: finding the Part, finding the Whole, or finding the Percentage itself — all three come from the one formula: Part = (Percentage / 100) × Whole.
  • When reversing a percentage change, always DIVIDE by the multiplier (e.g. ÷ 0.80 to undo a 20% drop) — never add the percentage back to the final value, because the percentage was never applied to that final value.
  • Two successive percentage changes never simply add up — use Net% = A + B + (AB/100) to account for the compounding. A 50% loss followed by a 50% gain still leaves you 25% below where you started.
✦ Plain-English analogy ✦ Real code with output ✦ Interview questions
Quick Answer

Imagine you walk into a shop and a jacket that normally costs ₹1000 has a '30% OFF' tag. Percentage is simply the shopkeeper's way of saying 'for every 100 rupees of value, cut 30.' That's it — percent literally means 'per hundred' (from Latin 'per centum'). So 30% of ₹1000 means: if I chop the price into 100 equal pieces, remove 30 of them. You pay for 70 pieces — ₹700. Every percentage problem you'll ever see in an interview is just a variation of this one idea.

Percentages show up everywhere — your salary hike, your bank's interest rate, election results, discount offers, your company's growth report. If numbers describe the world, percentages are how we compare and communicate those numbers in a way every human on the planet instantly understands. That's why every aptitude test — from campus placements to UPSC to big-tech hiring rounds — opens with percentage problems. They test whether you can think proportionally under pressure, which is exactly what real business decisions demand.

The frustrating thing is that most people know what a percentage IS but freeze the moment a question twists the idea slightly — 'what is the original price after a 20% increase?' or 'by what percent is A's salary more than B's?' These aren't hard problems. They just need one clear mental model and three or four formulas that you actually understand, not just memorise.

By the end of this article you'll be able to calculate any percentage value, find the original number before a percentage change, solve percentage increase and decrease problems, handle the classic 'successive percentage change' trap, and answer the trickiest interview percentage questions without a calculator. We'll build every formula from scratch using plain English before showing you the math — because once you see where a formula comes from, you never forget it.

The Foundation: What 'Percent' Actually Means and the One Core Formula

The word 'percent' breaks into two parts: 'per' (for every) + 'cent' (hundred). So 40% simply means 40 out of every 100. Nothing more.

Here's the single formula that every percentage calculation comes from:

$$Percentage = \left( \frac{\text{Part}}{\text{Whole}} \right) \times 100$$

Flip it around and you get the two other forms you'll use constantly:

$$Part = \left( \frac{\text{Percentage}}{100} \right) \times \text{Whole}$$ $$Whole = \left( \frac{\text{Part}}{\text{Percentage}} \right) \times 100$$

Think of it as a triangle. Cover the thing you want to find — the other two pieces of the triangle tell you how to get it.

Example: In a class of 60 students, 45 passed. What percentage passed? $$Percentage = (45 / 60) \times 100 = 75\%$$

Example: 35% of what number is 84? $$Whole = (84 / 35) \times 100 = 240$$

Example: What is 15% of 340? $$Part = (15 / 100) \times 340 = 51$$

All three are the same formula, just rearranged. Burn this triangle into memory — every single percentage problem is one of these three questions in disguise.

io/thecodeforge/aptitude/PercentageFoundation.java · JAVA
12345678910111213141516171819202122232425262728
package io.thecodeforge.aptitude;

public class PercentageFoundation {
    /**
     * Production-grade calculation for Part of a Whole
     * Standard for financial and inventory reporting
     */
    public static double calculatePart(double percentage, double whole) {
        return (percentage / 100.0) * whole;
    }

    /**
     * Calculates the Whole given a Part and its Percentage value
     * Useful for reverse-engineering totals from tax or discount values
     */
    public static double calculateWhole(double part, double percentage) {
        if (percentage == 0) throw new IllegalArgumentException("Percentage cannot be zero");
        return (part / percentage) * 100.0;
    }

    public static void main(String[] args) {
        // Example: What is 15% of 340?
        System.out.println("15% of 340 is: " + calculatePart(15, 340));
        
        // Example: 63 is 45% of what number?
        System.out.println("63 is 45% of: " + calculateWhole(63, 45));
    }
}
▶ Output
15% of 340 is: 51.0
63 is 45% of: 140.0
💡Mental Math Shortcut:
To find 10% of any number, just move the decimal one place left (10% of 340 = 34). Then build from there — 20% is double that (68), 5% is half of 10% (17), 15% = 10% + 5% (34 + 17 = 51). You can solve most exam questions mentally without long division.

Percentage Increase and Decrease — The Direction Trap That Fools Everyone

This is where 80% of interview candidates slip up — not because the math is hard, but because they apply the percentage in the wrong direction.

$$\text{Percentage Change} = \left( \frac{\text{New Value} - \text{Old Value}}{\text{Old Value}} \right) \times 100$$

If the result is positive → it's an increase. Negative → a decrease.

Always divide by the OLD (original) value, never the new one. That's the trap.

Now let's flip it. Suppose you know the original value and the percentage change, and you want the new value:

$$\text{New Value (Increase)} = \text{Old Value} \times (1 + R/100)$$ $$\text{New Value (Decrease)} = \text{Old Value} \times (1 - R/100)$$

The multiplier $(1 + R/100)$ or $(1 - R/100)$ is your best friend. It lets you jump straight to the answer in one step.

$$\text{Original} = \frac{\text{New Value}}{(1 \pm R/100)}$$

This reverse-calculation is the most common 'hard question' in aptitude tests. Once you have the multiplier idea, it's just division.

io/thecodeforge/aptitude/PriceCalculator.java · JAVA
123456789101112131415161718192021
package io.thecodeforge.aptitude;

public class PriceCalculator {
    /**
     * Calculates the original price before a discount was applied.
     * Crucial for 'Reverse Percentage' interview problems.
     */
    public static double findOriginalPrice(double discountedPrice, double discountPercentage) {
        double multiplier = 1 - (discountPercentage / 100.0);
        return discountedPrice / multiplier;
    }

    public static void main(String[] args) {
        // Problem: After a 20% reduction, a laptop costs 36000. Original price?
        double currentPrice = 36000;
        double discount = 20;
        double original = findOriginalPrice(currentPrice, discount);
        
        System.out.printf("Original Price: ₹%,.2f", original);
    }
}
▶ Output
Original Price: ₹45,000.00
⚠ Watch Out — The 'Reverse Percentage' Trap:
If a value increases by 20% and you want to reverse it, you do NOT subtract 20% from the new value. A 20% increase means multiplying by 1.20, so reversing it means dividing by 1.20 — not subtracting 20%. The percentage was calculated on the original, not the final value. This single mistake causes candidates to lose easy marks.

Successive Percentage Changes — Why 10% + 10% is NOT 20%

Here's a classic interview trick: 'A value is increased by 10% and then increased again by 10%. What is the total percentage increase?' Most people say 20%. The real answer is 21%. Let's see why.

When you apply two percentage changes one after another, the second change is applied to the ALREADY-CHANGED value, not the original. So the percentages don't simply add up.

$$\text{Net \% Change} = A + B + \frac{A \times B}{100}$$

The extra term $(A \times B / 100)$ is the 'compounding effect' — the percentage of a percentage.

For three or more changes, just chain the multipliers: $$\text{Final Value} = \text{Original} \times (1 + A/100) \times (1 + B/100) \times (1 + C/100)$$

Where negative values represent decreases.

This is the secret behind why compound interest beats simple interest, why back-to-back discounts work differently than a single combined discount, and why a 50% loss followed by a 50% gain still leaves you below your starting point. Once you see the compounding pattern, these problems become straightforward.

io/thecodeforge/aptitude/CompoundingCalculator.java · JAVA
1234567891011121314151617181920212223242526
package io.thecodeforge.aptitude;

public class CompoundingCalculator {
    /**
     * Calculates net percentage change for any number of successive changes.
     * @param originalValue Initial amount
     * @param changes Array of percentage changes (e.g., 10 for 10% inc, -5 for 5% dec)
     * @return Final value after all successive changes
     */
    public static double calculateSuccessiveChange(double originalValue, double[] changes) {
        double result = originalValue;
        for (double change : changes) {
            result *= (1 + (change / 100.0));
        }
        return result;
    }

    public static void main(String[] args) {
        double initial = 10000;
        double[] portfolioChanges = {-50, 50}; // 50% loss then 50% gain
        
        double finalValue = calculateSuccessiveChange(initial, portfolioChanges);
        System.out.println("Final Portfolio Value: ₹" + finalValue);
        System.out.println("Net Change: " + ((finalValue - initial) / initial * 100) + "%");
    }
}
▶ Output
Final Portfolio Value: ₹7500.0
Net Change: -25.0%
🔥Interview Gold:
The formula Net% = A + B + (AB/100) only works for exactly two successive changes. For three or more, always chain the multipliers: multiply the original by each factor in sequence. It's faster, less error-prone, and interviewers love seeing this multiplier approach because it shows you understand compounding, not just the formula.

Percentage Comparison Problems — 'More Than' vs 'Less Than' vs 'Of'

One of the most misread question types in aptitude tests involves comparative percentages. The difference between 'A is what percent MORE than B' and 'A is what percent OF B' is not just grammar — the answers are completely different numbers.

Type 1 — 'A is what % of B?' Answer = $(A / B) \times 100$

Type 2 — 'A is what % more than B?' Answer = $((A - B) / B) \times 100$ (You divide by B because B is the base/reference)

Type 3 — 'A is what % less than B?' Answer = $((B - A) / B) \times 100$ (Still divide by B — it's always the reference value)

Type 4 — 'By what % should A be increased to equal B?' Answer = $((B - A) / A) \times 100$ (Now A is the base because you're changing A)

The golden rule: the denominator is always the BASE — the thing you're comparing FROM or changing FROM. Read the question carefully to identify what the 'reference' is.

This catches candidates constantly because when you're not sure, your instinct picks the wrong denominator and your answer is off.

io/thecodeforge/aptitude/ComparisonEngine.java · JAVA
123456789101112131415161718
package io.thecodeforge.aptitude;

public class ComparisonEngine {
    public static void compareSalaries(double ravi, double priya) {
        // Priya earns what % MORE than Ravi?
        double moreThan = ((priya - ravi) / ravi) * 100;
        
        // Ravi earns what % LESS than Priya?
        double lessThan = ((priya - ravi) / priya) * 100;

        System.out.printf("Priya is %.1f%% more than Ravi%n", moreThan);
        System.out.printf("Ravi is %.1f%% less than Priya%n", lessThan);
    }

    public static void main(String[] args) {
        compareSalaries(40000, 50000);
    }
}
▶ Output
Priya is 25.0% more than Ravi
Ravi is 20.0% less than Priya
⚠ Watch Out — 'More Than' vs 'Less Than' give DIFFERENT answers:
If A = 40 and B = 50, then 'B is 25% more than A' AND 'A is 20% less than B' are BOTH correct statements about the same two numbers. They look like they should be equal but they're not, because the base flips. In an interview, the moment you see 'more than' or 'less than', circle the reference value and make it your denominator — never the other number.
Problem TypeFormula to UseBase (Denominator)When You See This...
Find % of a number(Percentage / 100) × WholeAlways 100'What is 35% of 480?'
Find what % one number is of another(Part / Whole) × 100The 'whole' or reference value'18 out of 72 is what %?'
% Increase / Decrease((New − Old) / Old) × 100Always the OLD (original) value'Price changed from X to Y, find % change'
Find original before % changeOriginal = New / (1 ± R/100)N/A — you're solving for it'After 20% off it costs X, find original'
Successive % changesNet% = A + B + (AB/100) OR chain multipliersStarting original value'Applied 2 or more changes in sequence'
A is % more than B((A − B) / B) × 100B — the reference you're comparing TO'How much more than B is A?'
A is % less than B((B − A) / B) × 100B — still the reference'How much less than B is A?'

🎯 Key Takeaways

  • Every percentage problem is one of three things: finding the Part, finding the Whole, or finding the Percentage itself — all three come from the one formula: Part = (Percentage / 100) × Whole.
  • When reversing a percentage change, always DIVIDE by the multiplier (e.g. ÷ 0.80 to undo a 20% drop) — never add the percentage back to the final value, because the percentage was never applied to that final value.
  • Two successive percentage changes never simply add up — use Net% = A + B + (AB/100) to account for the compounding. A 50% loss followed by a 50% gain still leaves you 25% below where you started.
  • In comparison questions ('A is what % more than B'), the denominator is always the BASE — the thing you are comparing FROM. 'More than B' means B is in the denominator. 'More than A' means A is in the denominator. Get this wrong and your answer will be completely different from the correct one, even though the arithmetic looks fine.

⚠ Common Mistakes to Avoid

    Adding successive percentages directly — If something increases by 10% then 10% again, beginners write 10 + 10 = 20%. The real answer is 21% because the second 10% is taken on the already-increased value. Fix it: always use Net% = A + B + (AB/100) for two changes, or chain multipliers like Original × 1.10 × 1.10 = Original × 1.21.
    Fix

    it: always use Net% = A + B + (AB/100) for two changes, or chain multipliers like Original × 1.10 × 1.10 = Original × 1.21.

    Using the WRONG base when reversing a percentage change — If a price drops 20% to reach ₹36,000, beginners add 20% back to ₹36,000 to get ₹43,200. That's wrong because the 20% was taken from the ORIGINAL price, not ₹36,000. Fix it: divide the final value by the multiplier — ₹36,000 ÷ 0.80 = ₹45,000 — always divide, never add back.
    Fix

    it: divide the final value by the multiplier — ₹36,000 ÷ 0.80 = ₹45,000 — always divide, never add back.

    Swapping the denominator in 'more than' vs 'less than' questions — If Priya earns ₹50k and Ravi earns ₹40k, many candidates say 'Ravi earns 25% less than Priya' (using ₹40k as the base). The correct answer is 20% less, because the base when comparing Ravi to Priya is Priya's salary (₹50k). Fix it: the denominator is always the value that follows the words 'than' or 'of' in the question — identify that word and its associated number first.
    Fix

    it: the denominator is always the value that follows the words 'than' or 'of' in the question — identify that word and its associated number first.

Interview Questions on This Topic

  • QA shopkeeper marks a product 40% above its cost price and then offers a 20% discount. What is his net profit or loss percentage? (Answer: 12% profit)
  • QRohan's income is 25% more than Sneha's. By what percentage is Sneha's income less than Rohan's? (LeetCode standard logic: 20%)
  • QA number is first increased by 20% and then the result is decreased by 20%. Find the net percentage change. (Answer: 4% decrease)
  • QIf the price of petrol increases by 25%, by what percentage must a user reduce their consumption so that the expenditure remains the same? (Classic aptitude question)
  • QIn an election between two candidates, the winner got 52% of the total valid votes and won by a margin of 2,400 votes. What was the total number of valid votes polled?

Frequently Asked Questions

What is the formula for percentage increase and decrease?

The formula is: Percentage Change = ((New Value − Old Value) / Old Value) × 100. A positive result means an increase, a negative result means a decrease. The key rule is always to divide by the OLD (original) value, never the new one. To find the new value directly, multiply the original by (1 + R/100) for an increase or (1 − R/100) for a decrease.

Why does a 50% increase followed by a 50% decrease not bring you back to the original value?

Because the second percentage is applied to a different number. If you start at 100, a 50% increase gives 150. A 50% decrease on 150 gives 75 — not 100. The increase worked on 100 but the decrease worked on 150, so the amounts in rupees were different even though the percentages were the same. This is the compounding effect: successive percentages multiply, they don't add.

What is the difference between 'A is 25% more than B' and 'B is 25% less than A'?

They are NOT the same thing. 'A is 25% more than B' means the difference is 25% of B (B is the base). 'B is 25% less than A' would mean the difference is 25% of A (A is the base). Since A and B are different numbers, dividing the same difference by different bases gives different percentages. If A = 125 and B = 100: A is 25% more than B, but B is only 20% less than A.

🔥
Naren Founder & Author

Developer and founder of TheCodeForge. I built this site because I was tired of tutorials that explain what to type without explaining why it works. Every article here is written to make concepts actually click.

← PreviousNumber Series ProblemsNext →Profit and Loss Problems
Forged with 🔥 at TheCodeForge.io — Where Developers Are Forged