Gross profit calculator
Enter a selling price, what the product costs you and how many you sold to see gross profit, gross margin and markup.
Gross margin
65.0%
You keep 65.0% of each sale after the product cost, 26.00 per unit, before shipping, fees and ads.
- Gross profit
- 13,000
- Revenue
- 20,000
- Markup
- 185.7%
- Gross profit per unit
- 26.00
An estimate from the numbers you entered, not a forecast. Nothing is stored or sent.
How this is calculated
- Revenue = (price − discount) × units
- Gross profit = revenue − cost per unit × units
- Gross margin = gross profit ÷ revenue
- Markup = gross profit ÷ cost of goods
Enter a price and units sold to see gross profit.
Each unit sells for less than it costs, so gross profit is negative.
You keep {m} of each sale after the product cost, {u} per unit, before shipping, fees and ads.
How to use this calculator
Enter price and cost
Use the price without VAT and the full cost of one unit, including inbound freight.
Enter units
Units sold in the period; leave the discount at 0 if you sold at full price.
Read margin and markup
Margin is a share of the price; markup is a share of the cost.
What are gross profit and gross margin?
Gross profit is revenue minus the cost of the goods you sold. Gross margin is that profit as a share of revenue. They show what each sale contributes before shipping, payment fees, advertising and running costs, which is why every other margin starts from them.
How to calculate gross profit and gross margin
| Gross profit | Revenue − cost of goods sold |
| Gross margin | Gross profit ÷ revenue × 100% |
| Markup | Gross profit ÷ cost of goods sold × 100% |
Worked example
Example numbers. 500 units sold at 40 that cost 14 each: revenue 20,000, cost of goods 7,000, gross profit 13,000. Gross margin is 13,000 ÷ 20,000 = 65.0%, markup 13,000 ÷ 7,000 = 185.7%, and each unit leaves 26.00.
What is a good gross margin?
There is no single good number: it depends on what you sell, your order value and how you sell it. The useful test is whether gross margin leaves enough to pay for shipping, fees, the ads that bring each order and your running costs. The break-even ROAS calculator turns your margin into the ROAS your ads must reach.
Gross profit and net profit are not the same
Gross profit only subtracts product costs. Net profit, or net income, also subtracts shipping, fees, ad spend, staff, software and every other cost; see the profit margin calculator. A store with a healthy gross margin can still lose money when ads cost too much per order.
How to improve gross profit
- Raise prices on products that sell without discounts, or bundle slow sellers with best sellers.
- Negotiate unit costs at higher volumes, and include freight and duties when you compare suppliers.
- Cut discount depth: a 20% discount on a 50% margin product halves the gross profit per sale.
How to track gross profit
Enter each product's cost in your store or in a spreadsheet, and work out gross profit per product each month. Or let ROASaurus read product costs from Shopify and other platforms and report gross profit per product and variant automatically.

Gross profit per product and variant
ROASaurus reads product costs, discounts and refunds for every order and shows gross profit, margin and ad spend per product and variant.
More free calculators
How do I calculate gross profit and gross margin?
Gross profit = revenue − cost of goods sold. Gross margin = gross profit ÷ revenue. 20,000 of revenue with 7,000 of product costs is 13,000 of gross profit, a 65% gross margin.
What inputs do I need?
The selling price without VAT, the cost of one unit and the number of units sold. Add the average discount if you sold below list price.
What is a good gross profit margin?
One that leaves enough to pay for shipping, fees, the ads per order and running costs. Check it against your break-even ROAS rather than a general benchmark.
What is the difference between margin and markup?
Margin divides profit by the price; markup divides it by the cost. A product bought for 10 and sold for 20 has a 50% margin and a 100% markup.
Every sale, traced to the ad that earned it
Server-side tracking, profit and lifetime value in one app. Free plan, no credit card.