TheProfitCalcs
Margins & Pricing

Profit Margin Calculator

Calculate the profit margin, markup, and gross profit for any product or service. Enter any two values and we will solve for the third — instantly, with no signup.

Profit margin
60.00%
Markup 150.00%
Gross profit$60.00
Revenue (selling price)$100.00
Cost$40.00
Cost as % of revenue40.0%

Margin vs Markup at a glance

Markup %Equivalent Margin %On $100 costSells for
10%9.09%$10 profit$110
25%20.00%$25 profit$125
50%33.33%$50 profit$150
100%50.00%$100 profit$200
200%66.67%$200 profit$300
Advertisement

How to use this calculator

This calculator works three ways depending on what you already know. Switch the toggle at the top to "Cost + Price" if you know both numbers and want to discover your margin. Switch to "Cost + Margin %" to figure out what selling price hits a target margin. Switch to "Price + Margin %" to back into the cost you can afford to pay your supplier while still hitting your margin goal.

Enter values as you go — the result updates live, with no "calculate" button. Currency fields accept any reasonable format ($1,234, 1234, or 1,234.56). Percentages should be entered as numbers, not decimals: type 25 for 25%, not 0.25.

A common mistake: forgetting to include shipping, payment processing fees (typically 2.9% + $0.30), and packaging in your cost. If you skip these, your real-world margin will be lower than what this calculator shows. For an accurate read on your business, push all variable per-sale costs into the "cost" input.

Understanding your results

The result panel shows four numbers. Profit margin (the big number) is the percentage of revenue you keep after paying for the cost of the item. Markup is the percentage you added on top of cost — note that these are different numbers describing the same dollar of profit, just from different angles.

Gross profit is the dollar amount you make per unit before any operating expenses like rent, marketing, or salaries. To estimate your true net margin, subtract your monthly operating expenses divided by units sold from your gross profit per unit. A 40% gross margin with $20,000/month in overhead and 1,000 units sold gives you a $20/unit overhead burden — eating heavily into that gross profit.

How do margins compare across industries? Software companies regularly post 70%+ gross margins because their cost of goods sold is mostly server costs. Restaurants target 60–70% gross margin on food (the rest goes to labor and rent in the operating section). Grocery and gas retail run on 1–5% margins and make money on volume.

If your margin is negative, you are selling at a loss — the cost exceeds the price. Either raise the price, lower the cost, or stop selling that product. Some businesses intentionally use loss leaders to attract customers, but everything cannot be a loss leader.

Advertisement

Frequently asked questions

What's the difference between margin and markup?

Margin and markup describe the same dollar of profit but as a percentage of different bases. Margin is profit as a percentage of revenue: (Revenue − Cost) ÷ Revenue. Markup is profit as a percentage of cost: (Revenue − Cost) ÷ Cost. A 50% markup equals a 33.3% margin. Mixing these up causes most pricing mistakes — businesses that think they're earning a 30% margin but only mark up 30% are actually earning 23%.

What's a good profit margin?

It depends entirely on your industry. Grocery retail margins run 1–3%, while software companies routinely see 70%+ gross margins. Restaurants typically target 5–10% net margins, professional services 15–20%, and SaaS businesses 20%+ in net margins. A useful benchmark: a gross margin under 30% makes it very hard to absorb operating expenses and still profit.

Does this calculator use gross or net margin?

This calculator computes gross margin — the difference between revenue and the direct cost of the item you're selling. Gross margin doesn't include overhead like rent, salaries, marketing, or software. Net margin subtracts all operating expenses and taxes. For pricing decisions, gross margin is the right starting point. For overall business health, you also need to track operating and net margin.

How do I increase my profit margin?

There are only three levers: raise your price, lower your cost of goods sold (COGS), or change your product mix toward higher-margin items. Raising prices by 1% typically improves margin more than cutting costs by 1%, because the price hike flows entirely to the bottom line. Most business owners undervalue this lever.

Should I price based on cost or on what customers will pay?

Cost-plus pricing (cost + markup) protects you from losses but ignores willingness to pay. Value-based pricing maximizes revenue when buyers see clear ROI. Use this calculator to verify any price you set will hit your target margin — but don't let it be the only input. Test prices against your market and competitors.

Why is my margin negative?

A negative margin means you're selling at a loss — the cost is higher than the price. This happens when shipping, fees, or hidden costs aren't included in your COGS. Some businesses intentionally sell loss leaders to acquire customers, but if everything is negative, you have a structural pricing problem that needs to be fixed immediately.

Do I include shipping and payment processing in cost?

For accurate margin, yes. Every variable cost that scales with each sale should be in COGS: the product itself, shipping out, payment processor fees (typically 2.9% + $0.30), packaging, and platform fees. Treating these as 'expenses' overstates your true margin and leads to underpricing.

Related calculators

Disclaimer: This calculator provides estimates for informational purposes only and does not constitute financial, tax, accounting, or legal advice. Tax rates, regulations, and economic data change frequently. Consult a qualified accountant or tax professional for advice specific to your situation.