Profit Margin Calculator
Find gross profit, profit margin % and markup from cost & price.
Price your products with confidence. Enter your cost and selling price to instantly see the gross profit, the profit margin (% of the selling price) and the markup (% over cost), or work backwards from a target margin to the price you should charge. Perfect for retailers, freelancers and e-commerce sellers setting prices. Runs fully in your browser — nothing is uploaded.
How to use Profit Margin Calculator
Choose calculation mode
Pick Cost and Price or Target Margin in this free online profit margin calculator depending on whether you want the margin or the selling price.
Enter cost price
Drag or type the cost price you pay per unit, the base figure the tool uses to work out gross profit, margin and markup instantly.
Add selling price
In Cost and Price mode, enter the price you charge so the calculator computes profit, profit margin percentage and markup over cost at once.
Or set target margin
In Target Margin mode, enter the margin you want and the tool reverse-calculates the selling price using price equals cost divided by one minus margin.
Read profit and margin
The hero and stat tiles show gross profit, profit margin and markup, with a donut splitting cost from profit so pricing decisions are clear.
Compare and price
Adjust cost, price or target margin to test scenarios and price products competitively while staying profitable, with every figure computed privately in-browser.
Frequently asked questions
What’s the difference between margin and markup?
Margin is your profit as a percentage of the selling price; markup is the same profit as a percentage of the cost. For example, a ₹50 cost sold at ₹100 is a 50% margin but a 100% markup — same ₹50 profit, two different bases.
How do I price for a target margin?
Switch to “Target Margin”, enter your cost and the margin you want, and the calculator shows the selling price using price = cost ÷ (1 − margin). For instance, a ₹600 cost at a 40% margin needs a ₹1,000 price.
Can the result show a loss?
Yes. In “Cost & Price” mode, if the selling price is below the cost the margin is negative and the result clearly shows a loss.
Is this GST-inclusive?
No — enter pre-tax figures. The calculator works on cost and price directly; use the separate GST Calculator to add or remove tax.
Is my data sent anywhere?
No. Every figure is calculated in your browser with JavaScript — nothing you enter is uploaded.
How do I calculate profit margin from cost and selling price?
Enter your cost price and selling price in “Cost & Price” mode and this profit margin calculator instantly shows the gross profit, profit margin percentage (profit ÷ price × 100) and markup percentage. For example, a ₹5,000 cost sold at ₹8,000 gives a ₹3,000 profit and a 37.5% margin.
What is a good profit margin for a product or business?
It depends on your industry — retail often runs 5–20% net margins while software and services can be far higher. Use this profit margin calculator to compare your cost, price and target margin so you can price products competitively while staying profitable.
Related tools — Finance calculators
- SIP Calculator — Estimate the maturity value of your monthly investment.
- EMI Calculator — Work out the monthly EMI on any loan in seconds.
- Mortgage Calculator — Estimate your monthly home-loan payment with taxes & insurance.
- ROI Calculator — Work out return on investment, net profit & annualised return.
- Simple & Compound Interest Calculator — Work out simple or compound interest with a growth table.
- FD / RD / PPF Calculator — Estimate maturity for fixed, recurring & PPF deposits.
- Inflation Calculator — See the future cost & lost buying power of money.
- Retirement Calculator — Find the corpus & monthly SIP you need to retire.