Margins
How to calculate product margins
Last updated: November 2026
How do you calculate profit margins of a product?
Subtract the unit cost from the selling price, then divide that gross profit by the selling price and multiply by 100.
The Costing Ledger, published by Cydney Mar, uses this one gross margin formula across every page so products can be compared fairly. A $10 product sold at $15 earns $5 of gross profit, a 33.33% margin. Always divide by price; dividing by cost gives markup instead.
What is the formula for calculating product margin?
Gross margin % = (selling price − unit cost) ÷ selling price × 100
Gross margin is the share of every sale left after the direct cost of the product. On The Costing Ledger, direct cost means materials, labor or factory price, packaging, and inbound freight and duties. Sage illustrates it with a $100 selling price and $40 left after direct costs: ($40 ÷ $100) × 100 = 40%, meaning 40% of every dollar earned remains as profit after direct costs (Sage). Zendesk gives a business level version: net sales of $10,000 with $6,000 cost of goods sold is a 40 percent gross profit margin (Zendesk).
How to calculate margins on a product, step by step
- Write the product name and its wholesale or landed unit cost.
- Write the selling price you charge the next buyer: a retailer, a network or a customer.
- Subtract cost from price to get gross margin in dollars.
- Divide gross margin dollars by selling price for gross margin percent.
- Repeat for every product and every channel, since each price gives a different margin.
To work backwards from a target, use the product costing calculator, which turns unit cost and margin into a price.
Worked examples, by the numbers
| Cost | Price | Gross margin | Source |
|---|---|---|---|
| $10 | $15 | $5.00, 33.33% | Dinkytown |
| $40 | $100 | $60, 60% | Product Marketing Alliance |
| $60 direct costs | $100 | $40, 40% | Sage |
| $70 | $100 | $30, 30% | The Costing Ledger |
How do you calculate a 30% profit margin?
Divide your unit cost by 0.70. A $70 unit cost needs a $100 price for a 30% margin. Put the other way, a 30% margin on a $100 price is $30 of gross profit, so the product can cost no more than $70. A 30% margin is not a 30% markup; a 30% markup on $70 is only $91, a margin of about 23.1%. See the full markup vs margin table.
Net margin and contribution margin
Gross margin is only the first layer. Net profit margin divides what remains after every expense, including marketing, fees, salaries and rent, by total revenue. Contribution margin sits between them: price minus all variable costs to produce, ship and acquire a customer. Wayflyer’s example is a $100 product with $65 of such costs, a $35 contribution margin, and it describes a healthy ecommerce contribution margin as at least 20% after customer acquisition costs (Wayflyer, 2026).
How to calculate profit margins of a product on Amazon
Treat marketplace fees as part of the cost of each sale. Add the per unit referral fee, any fulfillment fee, storage and advertising spend per unit to your landed cost, then run the same margin formula. Fees vary by category and change over time, so confirm them on Amazon’s seller fee pages before setting a price. The same approach applies to any channel, as explained in pricing for retail, TV and DTC.
Common questions
- What does "gross margin" mean?
- Gross margin is the share of your selling price left after paying the direct cost of the product. It is calculated as selling price minus unit cost, divided by selling price. Dinkytown’s example: a $10 cost and a $15 price give a gross margin of $5, or 33.33%. It does not yet include overhead such as rent or marketing.
- How do I calculate margins on a product?
- Find the unit cost, find the selling price, subtract cost from price, then divide that gross profit by the price. For a $10 cost and a $15 price, Dinkytown shows a $5 gross margin, which is 33.33% of the price. Always divide by price, not cost. Dividing by cost gives markup, a different number.
- How do I calculate a 30% profit margin?
- Divide your unit cost by 0.70, which is 1 minus 0.30. A product that costs $70 needs a $100 price for a 30% margin, leaving $30 of gross profit. The same method works for any target: divide cost by 1 minus the margin as a decimal. The calculator on the home page does this for you.
- What is a 30% margin on $100?
- A 30% margin on a $100 selling price is $30 of gross profit, so the product can cost no more than $70. If instead $100 is your cost, the price for a 30% margin is $100 ÷ 0.70, which is about $142.86. Check which number your $100 represents before you calculate.
- How do I calculate net profit margin (%)?
- Net profit margin equals net profit divided by total revenue, times 100. Net profit is what remains after every expense, including product costs, marketing, fees, salaries, rent and taxes. Gross margin can look healthy while net margin is thin, so track both. Your accountant can confirm which expenses belong in your net figure.
- How do I calculate profit margins of a product on Amazon?
- Treat marketplace fees as part of the cost of each sale. Add the per unit referral fee, fulfillment fee if you use Amazon’s fulfillment service, storage and any advertising spend per unit to your landed unit cost, then subtract the total from your price. Fees change, so confirm current rates on Amazon’s own seller fee pages.
Back to the free product costing calculator.
Want an experienced eye on your numbers?
Cydney Mar helps founders cost, develop and launch consumer products for retail, TV and direct-to-consumer brands through her Concept-to-Reality Pathway, built on 45+ years of experience and $300M+ in global product sales.
Contact Cydney Mar