Home » Business » Profit Margin Calculator

Profit Margin Calculator

Free profit margin calculator. Enter revenue and cost to get gross profit, gross margin percentage and markup percentage instantly — with margin vs markup explained.

FREE CALCULATOR
min 0, max 1000000000
min 0, max 1000000000
🧮

Your results will appear here.
Enter your values and press Calculate.

How it works

Gross profit is revenue minus cost. Gross margin expresses that profit as a percentage of revenue, while markup expresses it as a percentage of cost. Margin can never exceed 100%, but markup has no upper limit — a 25% margin on a $200 sale at $150 cost equals a 33.33% markup.

Margin = (revenue − cost) ÷ revenue × 100, markup = (revenue − cost) ÷ cost × 100

The profit margin formula, explained

Profit margin is gross profit divided by revenue, times 100: margin = (revenue − cost) ÷ revenue × 100. Cost here means the cost of goods sold (COGS) — what you paid to make or buy the product.

Worked example: you sell a product for $200 and it cost you $150 to source. Gross profit is $200 − $150 = $50, and the gross margin is $50 ÷ $200 × 100 = 25%. To calculate profit margin for a small business, run the same formula on total revenue and total COGS for the period.

Margin vs markup: the difference that costs businesses money

Markup and margin answer different questions. Markup is profit as a percentage of COST: markup = (revenue − cost) ÷ cost × 100. Margin is profit as a percentage of REVENUE. On the $200 sale at $150 cost, the markup is $50 ÷ $150 × 100 = 33.33% — higher than the 25% margin.

Is a 50% markup the same as a 50% margin? No — and this is the classic trap. A 50% markup gives a 33.3% margin; a true 50% margin requires a 100% markup. Conversion formulas: margin = markup ÷ (100 + markup) × 100, and markup = margin ÷ (100 − margin) × 100. To calculate a 30% profit margin, divide cost by 0.70; for a 40% margin, divide by 0.60. Should you use markup or margin to set prices? Use margin — it measures what share of each sale you keep, which is what investors, lenders and acquirers look at.

How to price a product for a target profit margin

To hit a target margin, work backwards from cost: selling price = cost ÷ (1 − target margin). Want a 40% margin on a product that costs $80? Price it at $80 ÷ 0.60 = $133.33. Check: ($133.33 − $80) ÷ $133.33 = 40%.

This is the heart of cost-plus pricing: cost plus the margin you need. Market-based pricing starts from what competitors charge and checks whether the implied margin is acceptable; value-based pricing starts from what customers will pay and treats the resulting margin as the reward. All three pricing strategies are easier to manage when you can calculate profit margin instantly before committing to a price.

What is a good profit margin? Typical margins and markups by industry

Typical markup percentages by industry are shown in the table below — use them to convert markup percentages to margins with the conversion formulas above.

A good profit margin depends on the industry — compare yourself to peers, not to a universal number. Typical ranges seen across industry benchmark tables:

| Industry | Typical gross margin | Typical markup | |---|---|---| | Grocery | 20–30% | 5–25% | | Construction / contractors | 15–35% | 15–35% | | Auto parts | 25–45% | 25–45% | | Apparel | 50–70% | 50–100% | | Furniture | 45–60% | 80–200% | | Restaurants | 60–70% on food | 60–300% | | Jewelry | 50–60% | 50–200% | | Electronics | 10–25% | 5–25% | | SaaS | 70–85% | 50–500%+ | | Professional services | 40–60% | 100–300% |

For freelancers and service businesses, the margin after fees and shipping — the contribution margin — matters more than the headline number. Does a higher markup always mean higher profit? Not necessarily: a high markup on tiny volume can earn less than a thin markup at scale.

What lowers your real margin: discounts, fees and shipping

Gross margin ignores the costs between revenue and profit. Discounts cut the top line directly — a 10% discount on a 30% margin product removes a third of the profit. Transaction fees (2–3% of revenue) and shipping eat margin after the sale. Subtract these variable costs from revenue to get the contribution margin: margin after fees and shipping.

The full picture is the net profit margin waterfall: revenue → minus COGS = gross profit → minus operating costs = operating profit → minus taxes and interest = net profit. The difference between gross margin and net margin is everything in that waterfall, which is why net profit margin is the number lenders watch.

6 tips to increase profit margin

Here are 6 proven ways (practical tips) to increase profit margin:

1. Raise prices selectively on your least price-sensitive products. 2. Reduce COGS by renegotiating suppliers or buying in volume. 3. Cut discount frequency — protect the top line. 4. Add higher-margin services or upsells to each order. 5. Trim operating costs that don't touch quality. 6. Improve the mix: steer marketing toward the products with the best contribution margin. Track the margin monthly; small, compounding gains beat one dramatic price hike. These are estimates for planning, not professional financial advice.

Frequently asked questions

Profit margin is the share of revenue left as profit after costs, expressed as a percentage: (revenue − cost) ÷ revenue × 100. Gross margin uses cost of goods sold; net margin uses all costs including taxes.

Margin is profit as a percentage of revenue (the selling price); markup is profit as a percentage of cost. A $50 profit on a $200 sale at $150 cost is a 25% margin but a 33.33% markup.

It depends on the industry: grocery and electronics run thin (10–30%), while SaaS and professional services run high (50–85%). Compare your gross margin to direct competitors rather than a universal benchmark.

Use the target-margin formula: price = cost ÷ (1 − margin). For a 30% margin divide cost by 0.70; for 40%, divide by 0.60. A $100 cost needs a $142.86 price for 30% margin.

Yes — when cost exceeds revenue, the margin is negative and you lose money on each sale. It happens with heavy discounting, mispriced contracts or sudden cost spikes.

No. Margin is profit divided by revenue, and profit can never exceed revenue — 100% would require zero cost. Markup, however, has no upper limit.

COGS is the direct cost of producing what you sell: materials, manufacturing labor and wholesale purchase cost. It excludes rent, salaries and marketing, which are operating costs.

Gross margin is (revenue − COGS) ÷ revenue — production efficiency. Net margin is (revenue − all costs including tax) ÷ revenue — the bottom line. Operating margin sits between the two, after operating costs but before interest and tax.

They reduce the revenue you actually keep, lowering the contribution margin (revenue minus variable costs like fees and shipping). A 3% transaction fee turns a 20% gross margin into roughly a 17% contribution margin.

Like margins, it varies: grocery 5–25%, apparel 50–100%, restaurants 60–300% on food, professional services 100–300%. Set markup from your target margin using markup = margin ÷ (100 − margin) × 100.

Contribution margin is revenue minus all variable costs (COGS, fees, shipping), as a percentage of revenue. It shows what each sale contributes toward fixed costs and profit — the most useful margin for freelancers and small businesses.

Raise prices on price-insensitive products, cut COGS through supplier negotiation, discount less often, add high-margin upsells, trim operating costs, and shift marketing toward your best-margin products.

Use margin = markup ÷ (100 + markup) × 100. A 33.33% markup converts to a 25% margin. To convert margin to markup, use markup = margin ÷ (100 − margin) × 100.

Related calculators