CP Formula — How to Find Cost Price, Examples

#Math Terms
TL;DR
The CP formula recovers the cost price of an item from its selling price and a profit or loss: $\text{CP} = \text{SP} - \text{profit}$, $\text{CP} = \text{SP} + \text{loss}$, and from a percentage, $\text{CP} = \frac{100}{100 + \text{profit%}} \times \text{SP}$ or $\frac{100}{100 - \text{loss%}} \times \text{SP}$. This article derives all four forms, defines every term, and works six examples plus the percentage mistakes that flip answers.
BT
Bhanzu TeamLast updated on June 22, 20266 min read

What Is the CP Formula?

Cost price (CP) is the price at which an item is bought; selling price (SP) is the price at which it is sold. Profit and loss are the difference between them, and the CP formula rearranges those definitions to solve for the cost.

There are four forms, depending on what the problem gives you:

$$\boxed{\text{CP} = \text{SP} - \text{profit}}\qquad\boxed{\text{CP} = \text{SP} + \text{loss}}$$

$$\boxed{\text{CP} = \frac{100}{100 + \text{profit%}} \times \text{SP}}\qquad\boxed{\text{CP} = \frac{100}{100 - \text{loss%}} \times \text{SP}}$$

Symbol

Meaning

$\text{CP}$

Cost price — what the seller paid

$\text{SP}$

Selling price — what the buyer paid

profit

$\text{SP} - \text{CP}$, when SP is higher

loss

$\text{CP} - \text{SP}$, when CP is higher

profit% / loss%

The gain or shortfall as a percentage of CP

Because every percentage here is a share measured against a base, the topic leans on the same comparison logic as the ratio formula. The single most important fact about this formula: profit% and loss% are always calculated on the cost price, not the selling price. That one rule is what makes the percentage forms look the way they do, and it is where most errors begin.

How Do You Find Cost Price When Profit Percentage Is Given?

This is the most-asked version of the question, and the percentage form is where readers get stuck. Start from the definition. If profit is a percentage of CP, then:

$$\text{SP} = \text{CP} + \text{profit%} \times \text{CP} = \text{CP}\left(1 + \frac{\text{profit%}}{100}\right) = \text{CP} \times \frac{100 + \text{profit%}}{100}.$$

Rearranging for CP:

$$\text{CP} = \frac{100}{100 + \text{profit%}} \times \text{SP}.$$

The loss case is identical with a minus sign — a loss makes SP smaller than CP, so the denominator is $100 - \text{loss%}$:

$$\text{CP} = \frac{100}{100 - \text{loss%}} \times \text{SP}.$$

Seeing where the $100$ comes from — it is the cost price written as "$100%$ of itself" — is what stops the formula from being something to memorise.

Examples of the CP Formula

Example 1

A toy is sold for $$340$ at a profit of $$60$. Find the cost price.

$$\text{CP} = \text{SP} - \text{profit} = 340 - 60 = 280.$$

Final answer: $$280$.

Example 2

An article is sold for $$230$ at a $25%$ profit. Find the cost price.

Wrong attempt. A student takes $25%$ of the selling price — $0.25 \times 230 = 57.5$ — and subtracts it: $230 - 57.5 = 172.5$. Check it by working forward: a cost of $172.5$ at $25%$ profit gives $172.5 \times 1.25 = 215.6$, not $230$. The profit percentage was taken on the wrong base — it belongs to the cost price, which is the unknown.

Correct. Use the percentage form, with profit% on CP:

$$\text{CP} = \frac{100}{100 + 25} \times 230 = \frac{100}{125} \times 230 = 184.$$

Final answer: $$184$. Check: $184 \times 1.25 = 230$. ✓

Example 3

An item is sold for $$250$ at a loss of $$20$. Find the cost price.

A loss means cost was higher than selling price:

$$\text{CP} = \text{SP} + \text{loss} = 250 + 20 = 270.$$

Final answer: $$270$.

Example 4

A chair is sold for $$900$ at a $6%$ loss. Find the cost price.

$$\text{CP} = \frac{100}{100 - 6} \times 900 = \frac{100}{94} \times 900 \approx 957.45.$$

Final answer: $$957.45$ (to the nearest cent).

Example 5

A shopkeeper sells a watch for $$1{,}200$, earning a $20%$ profit. What did the watch cost?

$$\text{CP} = \frac{100}{120} \times 1200 = 1000.$$

Final answer: $$1{,}000$. Check: $1000 \times 1.20 = 1200$. ✓

Example 6

A phone bought at cost price was sold for $$540$ after a $10%$ loss. The seller then wants to know the original cost and the loss amount.

Cost price first:

$$\text{CP} = \frac{100}{100 - 10} \times 540 = \frac{100}{90} \times 540 = 600.$$

Loss amount $= \text{CP} - \text{SP} = 600 - 540 = 60$, which is indeed $10%$ of $$600$.

Final answer: Cost price $$600$, loss $$60$.

Why Cost Price Matters — The Number Behind Every Markup

Cost price was singled out as the base for percentages because it is the only fixed reference in a trade — the selling price moves, but what you paid does not.

  • Retail pricing. Every markup, discount, and sale tag is computed relative to cost price; a shop that prices off the selling price loses track of its actual margin.

  • Break-even analysis. A business finds the point where total cost equals total revenue by working from cost price — sell above it and you profit, below it and you lose.

  • Accounting and inventory. Goods are recorded at cost price on the balance sheet; the profit only appears when they sell.

  • Personal trades. Reselling a phone, a bike, or a concert ticket is the same arithmetic — the gain or loss is always measured against what you paid.

The destination, a couple of chapters on, is compound growth: once profit% on cost price is comfortable, the same percentage-on-a-base idea becomes compound interest, where each period's base is last period's total. The same logic also drives how profit itself is calculated.

Where Cost-Price Problems Go Wrong

Mistake 1: Taking the percentage on the selling price

Where it slips in: Any "find CP given SP and profit%/loss%" problem.

Don't do this: Compute profit% of the selling price and subtract it. Profit% is defined on cost price, which is the unknown — not on SP.

The correct way: Use $\text{CP} = \frac{100}{100 + \text{profit%}} \times \text{SP}$.

Mistake 2: Using the wrong sign for profit versus loss

Where it slips in: Switching between profit and loss problems.

Don't do this: Use $100 + \text{loss%}$ in the denominator, or $\text{CP} = \text{SP} - \text{loss}$.

The correct way: Profit makes CP smaller than SP, so subtract profit / use $100 + \text{profit%}$. Loss makes CP larger than SP, so add loss / use $100 - \text{loss%}$. The direction is the whole game.

Mistake 3: Confusing cost price with marked price

Where it slips in: Problems that also mention a marked (list) price and a discount.

Don't do this: Treat the marked price as the cost price. The marked price is what the item is listed at before discount; the cost price is what the seller paid.

Conclusion

  • The CP formula finds cost price from selling price: $\text{CP} = \text{SP} - \text{profit}$ and $\text{CP} = \text{SP} + \text{loss}$.

  • From a percentage, $\text{CP} = \frac{100}{100 + \text{profit%}} \times \text{SP}$ for profit and $\frac{100}{100 - \text{loss%}} \times \text{SP}$ for loss.

  • Profit% and loss% are always calculated on the cost price, never on the selling price.

  • The most common mistake is taking the percentage on the selling price instead of CP.

  • Cost price is the fixed base behind markups, break-even analysis, and — a few chapters on — compound interest.

Try These Three Before Moving On

  1. An item sells for $$480$ at a $$80$ profit. Find the cost price.

  2. A bag sells for $$540$ at a $10%$ profit. Find the cost price.

  3. A book sells for $$144$ at a $20%$ loss. Find the cost price.

Answer to Question 1: $$400$. Solve Questions 2 and 3 with the percentage forms; if your forward-check does not return the selling price, return to Mistake 1.

Want a live Bhanzu trainer to walk your child through more CP formula problems? Book a free demo class — online globally.

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

What is the CP formula?
Cost price is found from selling price by $\text{CP} = \text{SP} - \text{profit}$ or $\text{CP} = \text{SP} + \text{loss}$, and from a percentage by $\text{CP} = \frac{100}{100 \pm %} \times \text{SP}$.
How do I find the cost price if I know the selling price and profit percentage?
Use $\text{CP} = \frac{100}{100 + \text{profit%}} \times \text{SP}$. For a $25%$ profit on an SP of $$230$, $\text{CP} = \frac{100}{125} \times 230 = $184$.
Is profit percentage calculated on cost price or selling price?
On cost price. This is the rule that shapes both percentage forms of the CP formula.
What is the difference between cost price and marked price?
Cost price is what the seller paid; marked price is the listed price before any discount. They are different quantities and should never be swapped.
Can the cost price ever be higher than the selling price?
Yes — that is exactly a loss. When $\text{CP} > \text{SP}$, the seller sold for less than they paid.
✍️ Written By
BT
Bhanzu Team
Content Creator and Editor
Bhanzu’s editorial team, known as Team Bhanzu, is made up of experienced educators, curriculum experts, content strategists, and fact-checkers dedicated to making math simple and engaging for learners worldwide. Every article and resource is carefully researched, thoughtfully structured, and rigorously reviewed to ensure accuracy, clarity, and real-world relevance. We understand that building strong math foundations can raise questions for students and parents alike. That’s why Team Bhanzu focuses on delivering practical insights, concept-driven explanations, and trustworthy guidance-empowering learners to develop confidence, speed, and a lifelong love for mathematics.
Related Articles
Book a FREE Demo ClassBook Now →