📊

Profit & Loss Calculator

Profit, loss, margin, markup and target selling price.

What Is a Profit and Loss Calculator?

A profit and loss calculator compares what you paid for goods, the cost price (CP), with what you received, the selling price (SP). The difference is a profit when SP is higher, a loss when SP is lower and neither when they are equal. The result is also expressed as a percentage so that sales of different sizes can be compared.

This version goes beyond the basic subtraction. It works with a quantity and extra expenses, shows profit on cost and margin on selling price side by side, gives the break-even price, and can work backwards: the selling price needed for a target profit or margin, or the original cost from a known sale.

Profit and Loss Formulas

Core formulas
MeasureFormula
ProfitSP − CP (when SP > CP)
LossCP − SP (when CP > SP)
Profit % or Loss % (markup on cost)Profit or Loss ÷ CP × 100
Profit margin (on selling price)Profit ÷ SP × 100
SP for a target profit %CP × (1 + Profit % ÷ 100)
SP for a target margin %CP ÷ (1 − Margin % ÷ 100)
CP from SP and profit %SP ÷ (1 + Profit % ÷ 100)
CP from SP and loss %SP ÷ (1 − Loss % ÷ 100)
Break-even price per unit(CP × Quantity + Expenses) ÷ Quantity

How to Use This Calculator

  1. Choose what you want to find from the drop-down. The field labels change to match.
  2. For a normal sale, enter the cost price and selling price per unit.
  3. Optionally add the quantity and the total of extra expenses such as transport, packing or commission.
  4. Press Calculate to see the profit or loss, both percentages, a cost breakdown and the break-even price.

Worked Example: A Retailer's Batch

A shop buys 50 units at ₹240 each and spends ₹600 on transport and ₹400 on packing. It sells all 50 units at ₹300.

Batch profit with expenses
ItemWorkingAmount
Cost of goods50 × ₹240₹12,000
Extra expenses₹600 + ₹400₹1,000
Total cost₹12,000 + ₹1,000₹13,000
Revenue50 × ₹300₹15,000
Profit₹15,000 − ₹13,000₹2,000
Profit % on cost₹2,000 ÷ ₹13,00015.38%
Margin on selling price₹2,000 ÷ ₹15,00013.33%
Break-even price per unit₹13,000 ÷ 50₹260

Ignoring the expenses would suggest a profit of ₹3,000 and 25% on cost, which overstates the real result by a third.

Markup vs Margin

Markup and margin describe the same profit but divide by different bases, which is why a "20% profit" can mean two different selling prices. Always check which one is meant before quoting or agreeing a price.

Converting between markup on cost and margin on selling price
Markup on costEquals margin ofMargin on SPEquals markup of
10%9.09%10%11.11%
20%16.67%20%25%
25%20%25%33.33%
30%23.08%30%42.86%
40%28.57%40%66.67%
50%33.33%50%100%

Selling Price for a Target Profit

Selling price needed on a cost price of ₹1,000
Target profit % on costSelling priceProfit
5%₹1,050₹50
10%₹1,100₹100
15%₹1,150₹150
20%₹1,200₹200
25%₹1,250₹250
30%₹1,300₹300
50%₹1,500₹500

Discounts and Profit

A discount comes off the marked price, but profit is measured against the cost. An item marked at ₹1,500 and sold at 20% off goes for ₹1,200, which is a 20% profit on a ₹1,000 cost. Mark the same item up by 40% (₹1,400) and offer a 25% discount, and the price falls to ₹1,050, a profit of just 5%. Before running an offer, work out the final price and compare it with your total cost, not with the marked price. The Discount Calculator shows the price after stacked discounts.

Why Equal Percentage Gain and Loss Do Not Cancel

Suppose two items are each sold for ₹1,200. One is sold at a 20% profit, so it cost ₹1,200 ÷ 1.20 = ₹1,000. The other is sold at a 20% loss, so it cost ₹1,200 ÷ 0.80 = ₹1,500. Total cost is ₹2,500 and total revenue is ₹2,400, so the overall result is a loss of ₹100, or 4% of the cost. The same effect is explained for rises and falls in the Percentage Calculator.

A Marketplace Seller's Example

An online seller buys an item for ₹650 and lists it at ₹999. The platform keeps a 10% commission, which is ₹99.90. The seller's profit is ₹999 − ₹99.90 − ₹650 = ₹249.10. That is 38.32% on cost but 24.93% on the selling price. Commission rates, shipping fees and return costs differ by platform and change over time, so use the current figures from your seller account.

Common Mistakes to Avoid

  • Mixing up markup and margin. Adding 20% to cost does not give a 20% margin.
  • Forgetting expenses. Transport, packing, commission, returns and wastage reduce the real profit.
  • Using GST-inclusive prices. GST you collect belongs to the government; enter the price without tax. See the GST Calculator.
  • Calculating percentage on the selling price by habit. Textbook profit and loss percentages use the cost price.
  • Assuming equal gain and loss percentages cancel out. They apply to different bases.

Important Note

Last reviewed: October 2026.

Results are arithmetic on the numbers you enter. They do not include income tax, GST input credit, depreciation, interest or any cost that you leave out. Use them for pricing and checking, and confirm accounting or tax treatment with a qualified professional.

Frequently Asked Questions

What is the formula for profit and loss?

Profit = Selling Price − Cost Price when the selling price is higher, and Loss = Cost Price − Selling Price when it is lower. Profit % and Loss % are both calculated on the cost price: (Profit or Loss ÷ Cost Price) × 100.

What is the difference between profit percentage (markup) and profit margin?

Profit percentage, also called markup, divides profit by the cost price. Profit margin divides the same profit by the selling price. On a cost of ₹1,000 and a selling price of ₹1,200, the profit is ₹200, which is 20% markup but a 16.67% margin. Margin is always the smaller figure for a profitable sale.

How do I find the selling price for a target profit percentage?

Multiply the cost price by (1 + target % ÷ 100). To earn 25% on a cost of ₹1,000, sell at ₹1,000 × 1.25 = ₹1,250. Use the "Selling price for a target profit %" mode to do this automatically.

How do I price an item to get a target margin?

Divide the cost price by (1 − margin ÷ 100). For a 20% margin on a cost of ₹1,000 the selling price is ₹1,000 ÷ 0.80 = ₹1,250. A common mistake is to add 20% to the cost, which gives ₹1,200 and only a 16.67% margin.

How do I find the cost price when I know the selling price and profit %?

Divide the selling price by (1 + profit % ÷ 100). If an item sold at ₹1,200 earned 20% profit, the cost was ₹1,200 ÷ 1.20 = ₹1,000. For a loss of 20%, divide by 0.80 instead, giving ₹1,500.

How do I include shipping, packaging or other expenses?

Enter them in the extra expenses field as a total for the whole quantity. The calculator adds them to the cost of goods to get your true total cost, then shows the profit after those costs and the break-even price per unit.

What is the break-even selling price?

It is the price at which you make neither profit nor loss: total cost divided by the number of units. In the worked example on this page, 50 units cost ₹12,000 plus ₹1,000 of expenses, so the break-even price is ₹13,000 ÷ 50 = ₹260 per unit.

Can I get a profit after giving a discount?

Yes, as long as the price after discount is still above your total cost. An item marked at ₹1,500 and sold at 20% off for ₹1,200 earns a 20% profit if it cost ₹1,000. Marking up by 40% and then discounting by 25% leaves only 5% profit, so check the final price, not the marked price.

If I sell two items at the same price, one at a 20% profit and one at a 20% loss, is there a gain?

No, there is a loss. If both sell for ₹1,200, the first cost ₹1,000 and the second cost ₹1,500, so you paid ₹2,500 and received ₹2,400. The loss of ₹100 is 4% of the total cost. The percentages are applied to different cost prices, so they do not cancel.

Should GST be included in the selling price when calculating profit?

Use the selling price without GST, because GST collected from the customer is passed on to the government and is not your income. If you only have the GST-inclusive price, remove the tax first with the GST Calculator, then enter the pre-tax price here. Input tax credit rules depend on your registration, so confirm them with a tax professional.

Can the loss percentage be more than 100%?

Not on a single sale, because the most you can lose on an item is its cost (selling for zero, a 100% loss). Profit percentage can exceed 100%, for example selling at three times the cost is a 200% profit on cost, though the margin stays below 100%.

Does this calculator work for stock, property or other investments?

It gives the basic arithmetic profit or loss on whatever cost and selling values you enter. It does not account for brokerage, capital gains tax, holding period or inflation, so use it as a quick check and not as a tax calculation.

Is the BestCalculator Profit and Loss Calculator free?

Yes. It is free, needs no sign-up and runs in your browser, so the figures you enter are not sent anywhere to be calculated.