Calculate profit margins, markups, and profit amounts instantly with our professional margin calculator. Ideal for business owners, retailers, and anyone managing pricing or profitability.
Profit margin shows percentage of revenue that is profit, while markup shows percentage added to cost price.
Margin trading increases both potential returns and risks. Always maintain sufficient margin to avoid margin calls.
Our product margin calculator helps you find profit margins and markups in just three steps.
Input cost and selling price, or add a desired margin to calculate the target selling price.
The calculator instantly computes profit margin, markup percentage, total revenue, and profit amount using standard business formulas.
Compare results to industry averages and refine pricing to meet your target profitability goals.
The calculator has two modes: Profit Margin (for business pricing) and Stock Trading (for margin trading accounts). Here is how to use the Profit Margin mode:
Enter your Cost Price (what you paid to produce or buy the item) and Selling Price (what you charge customers). Leave Desired Margin blank. Click Calculate Margin to see your profit margin %, markup %, profit amount ($), and revenue.
Example: Cost $60, Selling Price $100 → Profit Margin: 40%, Markup: 66.67%, Profit: $40
Enter your Cost Price and your Desired Margin %. Leave Selling Price blank. The calculator will show the exact selling price needed to achieve your target margin. This is the most common pricing use case for retailers and wholesalers.
Example: Cost $75, Desired Margin 40% → Required Selling Price: $125 (Markup: 66.67%)
Important: Enter only direct product costs (materials, labor, manufacturing, shipping to you) for gross margin. To calculate net margin, also include overhead, salaries, rent, and taxes in your cost figure.
How much of every dollar of revenue is profit. A 40% margin means you keep $0.40 from every $1 of sales after covering cost. Always calculated as a percentage of the selling price (revenue), not cost. This is the metric investors, lenders, and accountants use.
How much you added on top of cost to set your selling price. A 66.7% markup on a $60 item = $60 × 1.667 = $100 selling price. Always calculated as a percentage of cost. Markup is always higher than the corresponding margin for the same profit amount.
The raw dollar profit: Selling Price − Cost. On a $100 item with $60 cost = $40 gross profit per unit. Multiply by your expected unit volume for total gross profit. This is gross profit if you’re using COGS as cost, or net profit if you included all expenses.
Shown as the selling price per unit. Revenue = Selling Price × Units Sold. The calculator shows the per-unit figure. Multiply by your expected sales volume to project total revenue. Revenue − Cost = Gross Profit; Gross Profit ÷ Revenue = Gross Margin.
| Margin Type | What Costs Are Deducted | Use Case |
|---|---|---|
| Gross Margin | COGS only (materials, labor, production) | Product profitability, pricing decisions |
| Operating Margin | COGS + operating expenses (rent, salaries) | Business efficiency, EBITDA proxy |
| Net Margin | COGS + all expenses + interest + taxes | Overall profitability, investor analysis |
Understanding the relationship between margin and markup is critical for accurate pricing. They measure the same profit from different angles.
Profit Margin (%) = (Selling Price − Cost) ÷ Selling Price × 100
Markup (%) = (Selling Price − Cost) ÷ Cost × 100
Selling Price = Cost ÷ (1 − Desired Margin ÷ 100)
Net Profit Margin = (Revenue − All Costs − Interest − Taxes) ÷ Revenue × 100
Scenario: You buy a product from a supplier for $42 (COGS including shipping to your warehouse). You want to achieve a 40% gross margin. What should you charge customers?
Now if that product incurs $8 in shipping-to-customer, payment processing fees, and platform fees, your effective cost is $50. At $70 selling price: actual margin = ($70 − $50) ÷ $70 = 28.6%. Always include all variable costs in your cost figure for an accurate margin.
Common misconception: a 20% markup is NOT a 20% margin. Use this table to convert between the two:
| Markup % | Margin % | Markup % | Margin % |
|---|---|---|---|
| 15% | 13.04% | 75% | 42.86% |
| 20% | 16.67% | 100% | 50.00% |
| 25% | 20.00% | 150% | 60.00% |
| 33% | 24.81% | 200% | 66.67% |
| 50% | 33.33% | 300% | 75.00% |
Formulas: Margin = Markup ÷ (1 + Markup). Markup = Margin ÷ (1 − Margin). Always in decimal form when using these formulas.
Enter your landed cost (supplier cost + inbound shipping) as Cost Price. Use a target margin of 40–60% for e-commerce. For a $35 product with a 45% target margin: selling price = $35 ÷ 0.55 = $63.64. Then subtract estimated platform fees (e.g., 15% on Amazon) to verify your actual take-home margin.
Manufacturing businesses typically target 10–30% gross margin. Include all variable production costs: raw materials, direct labor, packaging, and freight. For a product that costs $18 to manufacture and sells wholesale at $28: margin = ($28 − $18) ÷ $28 = 35.7%. Compare to your target and adjust volume discounts accordingly.
For services, cost = your hourly labor cost (salary + benefits ÷ billable hours). A consultant earning $60/hr in labor costs who bills $200/hr: margin = ($200 − $60) ÷ $200 = 70%. This is typical for professional services. Use the Desired Margin field to find the minimum hourly rate needed at any cost basis.
Restaurant gross margins are typically 60–70% on food sales (meaning food cost is 30–40% of menu price). A dish with $4.50 food cost: at 65% margin target = $4.50 ÷ 0.35 = $12.86 menu price. Round up to $13.00 or $13.50. After labor, rent, and overhead, net restaurant margins often fall to 3–9%.
Software and digital products often achieve 70–90% gross margins because marginal cost per unit is near zero. Your cost input should include: hosting/infrastructure costs, payment processing fees (2–3%), support costs per customer, and any per-unit royalty or licensing fees. Subscription revenue boosts gross margin further by amortizing customer acquisition costs.
Use the reverse calculation to test how supplier cost reductions improve margins. Current: $80 cost, $120 price = 33.3% margin. If supplier drops to $72 (10% discount), same $120 price = ($120 − $72) ÷ $120 = 40.0% margin. A 10% cost reduction improved margin by 6.7 percentage points — a powerful negotiating insight.
Use these benchmarks to see how your margins compare to similar businesses, and apply the strategies below to improve profitability.
| Industry | Gross Margin | Net Margin |
|---|---|---|
| Software (SaaS) | 72–80% | 15–23% |
| Consulting & Services | 70–90% | 7–10% |
| Restaurants | 60–70% | 3–9% |
| E-commerce / Retail | 20–50% | 3–8% |
| Apparel | 50–55% | 3–5% |
| Advertising / Media | 25–35% | 2–5% |
| Manufacturing | 10–30% | 3–8% |
| Auto Parts & Dealers | 14–18% | 2–3% |
| Grocery / Supermarket | 25–30% | 1–3% |
Source: Industry averages based on publicly reported data. Your actual margins will vary by business model, geography, and scale.
Negotiate better supplier rates, switch to lower-cost materials without quality loss, reduce waste, or consolidate orders for volume discounts. Even a 5% reduction in COGS can significantly boost gross margin.
Use the Desired Margin field to find the selling price for your target margin. Test price increases on lower-volume SKUs first. A 5% price increase with no volume loss improves gross margin significantly — use the calculator to model the impact.
Run the calculator for each product or service line. Shift marketing and inventory investment toward your highest-margin items. Discontinue or reprice any product with a margin below your target threshold.
Bundling a high-margin accessory with a lower-margin core product raises the average transaction margin. If a $20 item has 50% margin and a $10 item has 70% margin, bundling at $25 creates blended margin you can calculate directly in this tool.
Explore our comprehensive suite of date and time calculation tools designed to make your life easier.
Quickly calculate the sales tax on any purchase amount.
Find your gross, net, and hourly pay after deductions.
Determine sale prices and savings with percent-off calculations.
Convert global currencies with real-time data.
Estimate simple or compound interest.
Plan loans, investments, and retirement.
Common questions about margin, markup, and business profitability.
Profit Margin = (Selling Price − Cost) ÷ Selling Price × 100. Example: a product that costs $60 and sells for $100 has a margin of ($100 − $60) ÷ $100 × 100 = 40%. Enter cost and selling price in the calculator to get the result instantly.
Margin is profit as a percentage of selling price. Markup is profit as a percentage of cost. For the same $40 profit on a $60 cost and $100 price: Margin = 40%, Markup = 66.7%. They are always different numbers. Markup is always higher than the corresponding margin for any positive profit.
It depends on the industry. Software/SaaS: 70–80% gross margin. Consulting: 70–90%. Restaurants: 60–70%. E-commerce/retail: 20–50%. Manufacturing: 10–30%. A general rule: a net margin below 5% is thin, 10% is healthy, and 20%+ is strong for most businesses.
Selling Price = Cost ÷ (1 − Margin%). To achieve 40% margin on a $60 cost: $60 ÷ (1 − 0.40) = $60 ÷ 0.60 = $100. Enter your cost and desired margin in the calculator — it calculates the required selling price automatically.
Gross margin = (Revenue − COGS) ÷ Revenue × 100. Net margin = (Revenue − All Costs − Interest − Taxes) ÷ Revenue × 100. Example: a business with $500K revenue, $200K COGS, and $250K total expenses has gross margin of 60% but net margin of 10%. Net margin is always equal to or lower than gross margin.
Margin = Markup ÷ (1 + Markup). Examples: 25% markup = 25/125 = 20% margin. 50% markup = 50/150 = 33.3% margin. 100% markup = 100/200 = 50% margin. To go from margin to markup: Markup = Margin ÷ (1 − Margin).
COGS (Cost of Goods Sold) includes all direct costs to produce or source your product: raw materials, manufacturing labor, packaging, and inbound freight. Higher COGS means lower gross margin for the same selling price. COGS does not include operating costs like rent, marketing, or admin salaries — those are captured in operating/net margin calculations.
To achieve a 20% margin, you need a 25% markup. The calculation: Markup = 0.20 ÷ (1 − 0.20) = 0.20 ÷ 0.80 = 0.25 = 25%. This is one of the most common pricing mistakes — adding 20% markup to cost gives only a 16.67% margin, not 20%.
Two levers: reduce costs or increase revenue. For costs: renegotiate supplier pricing, reduce waste, eliminate low-margin products. For revenue: test price increases on low-elasticity products, shift marketing to high-margin SKUs, upsell complementary products. Use this calculator to model the impact of any change before implementing it.
No. All calculations happen locally in your browser. Your data is private, secure, and never stored or shared.