Profit Margin Calculator
Calculate gross profit margin, markup, selling price, or cost price. Works for products, services, and entire businesses — everything in your browser.
Runs locally in your browser. No data is sent to any server.
What is profit margin?
Gross profit margin is the percentage of revenue left after subtracting the cost of goods sold (COGS). For example, if you sell a product for $100 and it costs $50, your gross profit is $50 and your gross margin is 50%.
Markup is the percentage you add to your cost to arrive at the selling price. A 50% margin is a 100% markup — they're related but not the same. This calculator shows both.
Why use this?
- Sellers and online store owners: Know your margins per product to set competitive prices while staying profitable.
- Freelancers and agencies: Calculate service profitability when you know delivery cost and client price.
- Small business owners: Understand your pricing strategy and where you have room for discounts, ads, or growth.
How to use
- Margin calculator mode: Enter your cost price and selling price to see gross profit, margin %, markup %, and your break-even point.
- Price setter mode: Enter your cost and desired margin % to find the ideal selling price.
- Cost finder mode: Enter your target selling price and desired margin to determine the maximum you can spend.
Pricing tips
- Compare margin vs markup — many new sellers confuse them when pricing products.
- Aim for at least 40–50% gross margin on physical products to cover shipping, returns, and marketing.
- Service businesses often target 60–80% margins since overhead is lower.
- Use the "price setter" mode to back into a price from your desired margin.
Frequently asked questions
What is the difference between margin and markup?
Margin is profit as a percentage of the selling price (profit ÷ price). Markup is profit as a percentage of the cost (profit ÷ cost). A 50% markup on a $10 item gives a $15 price, which is a 33.3% margin.
How do I calculate gross margin?
Subtract the cost of goods from the selling price, then divide by the selling price. For a $25 product that costs $15 to make: ($25 − $15) ÷ $25 = 40% margin.
What margin is considered healthy?
It varies hugely by industry. Retail typically runs 25–50%, software 70–90%, while groceries may be 10–20%. Compare against your own industry's norms.
Can I enter percentages instead of costs?
Yes. The calculator accepts either cost and price, or cost and target margin, and derives the rest.
Related Money tools
Showing all 14 related money tools. Browse all tools →