Free profit margin calculator
This profit margin calculator shows the profit, margin and markup on a sale and the price that reaches your target margin, from your price and costs.
Your margin
Margin divides by selling price. Markup divides by cost. This is not your final take-home profit unless you included every relevant expense.
A worked-out amount rounds to the cent in the direction that keeps the percentage you entered at least as high: a price rounds up from a cost, a cost rounds down from a price, and a price or cost rounds down from a profit. Margin and markup are then worked out from the rounded amounts.
Some inputs still use example values. Review them before using this result.
40%profit margin
margin 40%
- Selling price
- $1,000.00
- Cost
- $600.00
- Profit
- $400.00
- Markup
- 66.67%
More optionsExport the calculation
Includes the amounts in your chosen currency, percentages and cost assumptions for the current calculation. Undefined percentages are left blank and explained in Notes.
How to calculate profit margin
Margin = (price − costs) ÷ price × 100
Markup = (price − costs) ÷ costs × 100
Price for a target margin = costs ÷ (1 − margin)
Margin to markup
Worked out by the calculator. Prices round up to the cent so they reach the margin.
| Margin | Markup | Price on $100.00 of costs |
|---|---|---|
| 10% | 11.11% | $111.12 |
| 15% | 17.65% | $117.65 |
| 20% | 25% | $125.00 |
| 25% | 33.33% | $133.34 |
| 30% | 42.86% | $142.86 |
| 35% | 53.85% | $153.85 |
| 40% | 66.67% | $166.67 |
| 45% | 81.82% | $181.82 |
| 50% | 100% | $200.00 |
| 60% | 150% | $250.00 |
| 70% | 233.33% | $333.34 |
| 80% | 400% | $500.00 |
Margins by sector, for comparison
Gross margin is what is left after the cost of goods sold; net margin is what is left after every expense and tax. Listed companies are far larger than most small businesses, so use these to compare and set your own target from your costs.
| Sector | Gross margin | Net margin | Firms |
|---|---|---|---|
| Advertising | 36.24% | −0.30% | 52 |
| Apparel | 56.88% | 3.85% | 35 |
| Business & Consumer Services | 33.38% | 7.03% | 155 |
| Computer Services | 24.26% | 4.45% | 64 |
| Education | 45.82% | 8.79% | 32 |
| Engineering/Construction | 15.46% | 5.94% | 48 |
| Environmental & Waste Services | 36.30% | 8.24% | 53 |
| Food Processing | 23.23% | 2.82% | 78 |
| Household Products | 51.04% | 11.68% | 110 |
| Restaurant/Dining | 32.24% | 9.37% | 64 |
| Retail (Special Lines) | 35.30% | 5.19% | 94 |
| All US listed companies, without financials | 34.39% | 8.56% | 4,822 |
Source: Aswath Damodaran, NYU Stern, Margins by Sector (US): US listed companies, data as of January 2026. Read October 17, 2026.
How do I find the profit margin on a sale?
Work on one sale, job or consistent reporting period. Keep revenue and costs on the same basis, then check whether your price covers the expenses entered.
Enter the price actually paid
Enter the selling price after discounts and before sales tax. For a monthly comparison, use the whole month’s sales and costs instead of mixing one sale with monthly expenses.
Include the costs you want to cover
Add materials, paid labor, shipping, platform fees and a fair share of overhead. The calculator does not add missing costs or choose a labor rate for you.
Compare with your chosen margin
The result shows the margin, the profit and the markup. Your target produces a minimum price rounded up to the next cent; adjust the target to compare your own options.
What costs go into the margin for a job, a product or an item?
The formula stays the same. What you include in cost changes the meaning of the result.
A service job
What to change
Enter the quoted job price and all job costs, including your labor and allocated overhead. Compare a discount with the original quote.
Before you use it
A positive difference may still leave unpaid overhead or owner time if you left them out.
A digital product
What to change
Use the actual sale price after discounts. Include the platform/payment fee and any delivery, support or advertising cost you allocate to that sale.
Before you use it
A low production cost does not make advertising and support free. Add those expenses yourself.
A physical item
What to change
Include purchase/manufacturing cost, packing, shipping you pay and selling fees. Use the selling price after discounts and before sales tax.
Before you use it
Do not count customer-paid shipping twice or compare per-item costs against an entire order.
Profit margin vs markup: what is the difference?
- Revenue and costs refer to the same sale, job or period.
- Discounts are reflected in the entered selling price.
- Fees, overhead and owner labor are included if you want the result to cover them.
- Your target margin is your own assumption, not a market benchmark.
- Zero sales has no percentage margin; zero cost has no percentage markup.
Margin divides by price
Margin = (selling price − costs) ÷ selling price × 100. A $1,000 job with $600 of costs leaves $400 of profit, or 40% of the selling price. The profit is only as complete as the costs you entered.
Markup divides by cost
The same $400 difference is 66.67% of the $600 cost. Adding 40% to cost would produce a $840 price and only a 28.57% margin. Margin and markup use different denominators.
A target gives you a price to compare
Target price = costs ÷ (1 − target margin). With $600 costs and a 30% target, the minimum cent price is $857.15. The calculator does not decide a competitive price or predict how many customers will buy.
Sources checked on October 9, 2026: Shopify: profit margin formula and cost basisopens in a new tab
Questions about this tool
How do I calculate profit margin?
Subtract costs from selling price, divide the difference by selling price and multiply by 100. Enter both amounts on the same basis. With $100 revenue and $60 costs, the profit is $40 and the margin is 40%.
What is the difference between profit margin and markup?
Margin divides the amount after costs by selling price. Markup divides it by cost. A $100 sale with $60 costs has 40% margin and 66.67% markup. The percentages are different even though the dollars are identical.
What is a good profit margin for my business?
It depends on your full costs and what you need to earn; the calculator gives the price that reaches your target. For comparison, US listed companies in Business & Consumer Services had a 33.38% gross and a 7.03% net margin in NYU Stern data as of January 2026. They are far larger than most small businesses.
Is this gross margin or net profit margin?
That depends on the costs you include. Direct product or job costs give a gross margin. Including your operating expenses, tax and owner pay gives a net margin. The calculator cannot confirm which of those your costs include, so its profit is the profit on the costs you entered.
Can profit margin be negative?
Yes. When selling price is below entered costs, the calculator shows a loss and a negative margin. A $75 sale with $100 costs loses $25 and has a −33.33% margin. The target-price comparison shows how much the entered price would need to rise.
What happens with zero revenue or zero cost?
At zero selling price, margin is undefined because it would divide by zero. The dollar gain or loss still appears. At zero cost, markup is undefined. A positive sale with zero entered cost has 100% margin before any omitted expenses.
How do I find a price for a target margin?
Divide entered costs by one minus the target margin as a decimal. For $600 costs and a 30% margin, $600 ÷ 0.70 gives $857.142857, and the tool rounds it up to $857.15 so it meets the target. Choose Price from cost and margin in Work out to get that price as the result. A worked-out amount always rounds the way that keeps your percentage: a price up from a cost, a cost down from a price.
What is a 30% margin on $100?
On a $100 price, a 30% margin is $30 of profit and a $70 cost: $100 × (1 − 0.30) = $70. Choose Cost and profit from price and margin in Work out and enter 100 and 30. If $100 is your cost instead, a 30% margin needs a $142.86 price (Price from cost and margin).
Does this include payment fees, discounts or tax?
Nothing is added automatically. Use the actual selling price after a discount and include relevant fees in entered costs. Keep sales tax collected for remittance outside the revenue figure. If fees change with price, use the service pricing calculator’s explicit fee model for that comparison.
How do I calculate profit margin in Excel?
With the cost in B1 and the selling price in B2, =(B2-B1)/B2 gives the margin; format the cell as a percentage. With a target margin in B3, =B1/(1-B3) gives the price for that target. Google Sheets takes the same formulas. Download CSV, under More options, opens in Excel with your price, costs, margin, markup and target price, cents exact and percentages to four places.
Use it from an AI browser
This page has site tools: actions an AI agent can call directly, with no plugin or API key. The ChatGPT desktop app’s browser can use them where site tools are available, and so can Chrome with WebMCP turned on. The agent works on this page, with the same steps and limits as its buttons, so you can check the result before you use it.
Open doany.ai/tools/profit-margin-calculator and work out my margin on a $2,450 bathroom refresh that cost me $1,710 in labor, materials and fees, and tell me what I would need to charge to reach a 35% margin.
Site tools work only while this page is open. They never send messages, invoices or payments for you.