Profit & Loss Calculator

Enter what something costs and what it sells for to see profit or loss, profit %, gross margin and markup — or work backwards from a target margin to a selling price.

Profit
—
Profit / loss
—
Profit % (markup)
—
Gross margin
—
Break-even price
—
Total revenue
—
Total cost
—

How to use the Profit & Loss Calculator

  1. Enter cost price. Include the purchase price per unit and the quantity.
  2. Enter selling price. Or switch to ‘Find selling price’ and set a target markup or margin.
  3. Add other expenses. Shipping, marketplace fees or packaging are spread across all units.
  4. Read profit, margin and markup. Green means profit, red means loss.

Profit & Loss Calculator formula

Profit = SP − CP Profit % = (SP − CP) ÷ CP × 100 Margin % = (SP − CP) ÷ SP × 100 SP for markup M = CP × (1 + M/100) SP for margin G = CP ÷ (1 − G/100)

Worked example

You buy earphones at ₹750 and sell at ₹999. Profit = ₹249. Profit % on cost (markup) = 33.2%, while margin on the selling price = 24.92%.

Margin vs markup — they're not the same

Markup is profit as a percentage of cost; margin is profit as a percentage of selling price. A 50% markup equals a 33.3% margin. Retailers usually talk about margin, while school maths ‘profit %’ is markup. iCalc shows both so you never mix them up.

Frequently asked questions

How do I calculate profit percentage?

Profit % = (Selling price − Cost price) ÷ Cost price × 100.

How is loss percentage calculated?

Loss % = (Cost price − Selling price) ÷ Cost price × 100. The calculator shows it in red when SP is below CP.

What is the difference between margin and markup?

Markup is based on cost and margin is based on the selling price. The same rupee profit gives a higher markup % than margin %.

How do I find the selling price for a 30% margin?

Divide the cost by (1 − 0.30). For a ₹700 cost, SP = ₹1,000. Use ‘Find selling price’ and choose ‘Margin on price’.

Should I include GST in cost price?

If you can claim input tax credit, use the cost before GST. Otherwise include it, because it is a real cost to you.

Last updated 25 October 2026 · Built and maintained by Infodoer. Results are estimates for information only.