Ventora
PricingBlogCasesAbout
Log inGet started
  1. Ventora
  2. Free tools
  3. Margin Calculator: Profit Margin & Markup
Founder finance

Margin Calculator: Profit Margin & Markup

Free, no signup. Enter any two numbers and get margin, markup, profit and price instantly.

  • 100% free
  • No signup
  • No limits
  • Runs in your browser
Enter any two values
your input
$
your input
$
calculated
$

For totals. Leave at 1 for one item.

calculated
%
calculated
%
Quick targets
Margin33.33%Markup50%Profit$20.00
Result
Margin
33.33%
Markup
50%
Profit per item
$20.00
Selling price
$60.00

Selling at $60.00 with a $40.00 cost gives a 33.33% margin, which is a 50% markup. You keep $20.00 of every $60.00.

Where the price goes
  • Item cost $40.00
  • Profit $20.00
Compare with your industry

Gross, operating and net margins for 34 industries (US public companies, January 2026).

Show the math
  1. Profit = price − cost = $60.00 − $40.00 = $20.00
  2. Margin = profit ÷ price = $20.00 ÷ $60.00 = 33.33%
  3. Markup = profit ÷ cost = $20.00 ÷ $40.00 = 50%
Ventora

Your numbers work. Now sell it.

Ventora builds the store, the card checkout and the landing page from a plain description. No code.

200 free credits, no card.

Everything is calculated in your browser. For pricing decisions, not financial or tax advice.

Next step · eBay and Etsy Fee CalculatorSee what eBay or Etsy takes at this price

Profit margin = (price − cost) ÷ price. Markup = (price − cost) ÷ cost. Both use the same profit, but margin compares it with the selling price and markup compares it with the cost. An item that costs $40 and sells for $60 makes $20 profit: a 33.33% margin and a 50% markup.

Type any two of cost, price, profit, margin or markup and the calculator fills in the other three. Open Add real costs to include shipping, card or marketplace fees, ad spend and discounts, and you also get your break-even price and the most you can spend on ads per sale. The Many products tab checks a whole price list at once.

How to use the margin calculator

  1. 1

    Enter any two values

    For example a cost and a selling price, or a cost and the margin you want. The two numbers you typed are marked “your input”; the rest are calculated.
  2. 2

    Read margin, markup and profit

    Results update as you type, with a plain-English summary, a breakdown of where the price goes and the formulas with your numbers.
  3. 3

    Add real costs, then share

    Add shipping, fees, ads or a discount to see net margin and a break-even price. Copy the link, or download CSV or PDF.

Profit margin formula: gross, operating and net

Every profit margin has the same shape: profit ÷ revenue × 100. What changes is which costs you take away first.

  • Gross margin = (revenue − cost of goods sold) ÷ revenue. Only the costs of making or buying what you sold.
  • Operating margin = (gross profit − operating expenses) ÷ revenue. Also takes away rent, salaries, software and marketing.
  • Net margin = net income ÷ revenue. Also takes away interest and income tax: what is left for the owner.

Example: a shop with $100,000 in sales for the year.

LineAmountMargin
Revenue$100,000
Cost of goods sold−$60,000
Gross profit$40,00040% gross margin
Rent, staff, marketing−$25,000
Operating profit$15,00015% operating margin
Interest and tax−$4,000
Net profit$11,00011% net margin

The calculator above works per item: cost and price give the gross margin. With Add real costs open it also shows a net margin per sale, after the costs that come with each order (shipping, payment and marketplace fees, ads, discount). Rent and salaries are not per-sale costs, so they are not in it.

Markup vs margin: the difference

Margin and markup describe the same profit from two sides. Margin is the share of the price you keep. Markup is how much you add on top of the cost. Because the price is always bigger than the cost (when you make a profit), the markup percentage is always bigger than the margin percentage.

  • margin = markup ÷ (1 + markup): a 50% markup is 0.5 ÷ 1.5 = 33.3% margin.
  • markup = margin ÷ (1 − margin): a 40% margin is 0.4 ÷ 0.6 = 66.7% markup.

Mixing them up is the most common pricing mistake. If you want a 40% margin and add 40% to the cost, you get a 28.6% margin instead. On a $25 cost that is a $35 price instead of $41.67.

MarginMarkupPrice on a $100 cost
10%11.11%$111.11
15%17.65%$117.65
20%25%$125.00
25%33.33%$133.33
30%42.86%$142.86
40%66.67%$166.67
50%100%$200.00
60%150%$250.00
70%233.33%$333.33
75%300%$400.00

The full table from 5% to 90% is in the Margin ↔ markup table tab of the calculator.

How to price a product for a target margin

To hit a margin, divide the cost by what is left after the margin: price = cost ÷ (1 − margin). For a 40% margin on a $25 item: 25 ÷ 0.60 = $41.67. In the calculator, enter the cost and tap a margin chip (or type the margin), and the price appears.

Fees that are a percentage of the price need one more step, because they grow with the price. With a card fee of 2.9% + $0.30:

price = (cost + fixed fees) ÷ (1 − fee % − margin) = (25 + 0.30) ÷ (1 − 0.029 − 0.40) = $44.31. Check: the fee is $1.59, profit is 44.31 − 25 − 1.59 = $17.72, and 17.72 ÷ 44.31 = 40%.

The calculator does this for you: open Add real costs, pick a fee preset and set a target net margin. Card rates shown are the US standard card rate; they vary by country and payment method. For a closer look at payment fees, use the Stripe fee calculator.

Gross margin vs gross profit

Gross profit is an amount: revenue minus cost of goods sold (COGS). Gross margin is that amount as a share of revenue. $40,000 gross profit on $100,000 of sales is a 40% gross margin.

What usually goes into COGS:

  • For products you make: materials, packaging and the labour that goes directly into making them.
  • For products you resell: the purchase price plus inbound shipping and import duties.
  • For services: the time of the people who deliver the work (and contractors), not office staff.
  • For software: hosting, third-party services used per customer, and support.

Rent, marketing, office salaries and software you use to run the business are operating expenses, not COGS. Outbound shipping and payment fees are handled differently from business to business; for pricing decisions, count them per sale, as the calculator does with Add real costs.

Typical profit margins by industry

There is no single “good” margin: a grocery store and a software company run on very different numbers. The table shows aggregate margins of US publicly traded companies by industry, from Aswath Damodaran, NYU Stern, "Margins by Sector (US)", data as of January 2026. Pick your industry in the calculator to compare your own margin with all 34 industries.

IndustryGross marginOperating marginNet margin
Restaurants & cafés32.24%15.79%9.37%
Grocery & food stores26.31%2.29%1.32%
Clothing & fashion brands56.88%9.11%3.85%
Specialty retail (online & shops)35.3%7.73%5.19%
Wholesale & distribution30.57%10.1%6.05%
Packaged food & snacks23.23%10.63%2.82%
Beauty & household products51.04%18.62%11.68%
Software & SaaS71.72%32.98%25.49%
IT services & consulting24.26%7.41%4.45%
Business & consumer services33.38%12.27%7.03%
Education & training45.82%14.01%8.79%
Hotels & hospitality60.85%19.39%10.38%
Construction & contracting15.46%6.49%5.94%
Machinery & manufacturing37.47%15.86%10.58%
All US companies (excl. financials)34.39%13.14%8.56%

Source: Aswath Damodaran, NYU Stern, "Margins by Sector (US)", January 2026 (operating margin = pre-tax, unadjusted). These are large US public companies, so small businesses often differ, and companies count costs differently: many restaurant chains, for example, put kitchen staff and rent into cost of sales, which lowers their gross margin. Use it as a rough guide, not a target.

Worked examples

Each example opens the calculator with these numbers, so you can change them.

Etsy candle: net margin after fees

Cost $8, price $24: a 66.67% gross margin. Etsy (US) takes a 6.5% transaction fee, 3% + $0.25 for payment processing and a $0.20 listing fee, so $2.73 per sale. Net profit is $13.27, a 55.29% net margin.

Open in the calculator

Coffee shop latte: price for a 70% margin

Ingredients and cup cost $1.10. For a 70% margin: 1.10 ÷ (1 − 0.70) = $3.67, a 233% markup. Staff and rent still have to come out of the $2.57 gross profit.

Open in the calculator

Dropshipping: break-even price

Product $12, shipping $5, ads $9 per sale, card fees 2.9% + $0.30. At $29.99 the gross margin looks like 60%, but net profit is only $2.82 (9.4%). The break-even price is $27.09, and the most you can spend on ads per sale is $11.82.

Open in the calculator

Freelancer or agency: cost-plus 30%

A project costs you $1,000 in contractor time. A 30% markup gives a $1,300 price, which is a 23.08% margin, not 30%. For a true 30% margin, charge $1,428.57.

Open in the calculator

SaaS seat: $3 cost, $20 price

Hosting and services cost $3 per user per month and the plan is $20: an 85% gross margin (a 566.67% markup). For MRR, churn and LTV, use the SaaS metrics calculator.

Open in the calculator

Frequently asked questions

What is a good profit margin?

It depends on the industry. Across US public companies outside finance, the aggregate gross margin is about 34% and the net margin about 8.6% (January 2026 data from NYU Stern). Software runs near 72% gross, grocery stores near 26% gross and about 1.3% net.

Compare yourself with your own industry (pick it in the calculator) and make sure the margin covers your overheads and still leaves profit.

How do I calculate a 20%, 30% or 50% margin?

Divide the cost by (1 − margin). For an item that costs $50:

  • 20% margin: 50 ÷ 0.80 = $62.50 (a 25% markup)
  • 30% margin: 50 ÷ 0.70 = $71.43 (a 42.86% markup)
  • 50% margin: 50 ÷ 0.50 = $100 (a 100% markup)

How do I convert markup to margin?

Margin = markup ÷ (1 + markup). A 25% markup is 0.25 ÷ 1.25 = 20% margin; a 100% markup is a 50% margin. The other way: markup = margin ÷ (1 − margin).

Is a 50% markup the same as a 50% margin?

No. On a $40 cost, a 50% markup gives a $60 price and a 33.3% margin. A 50% margin needs an $80 price, which is a 100% markup.

What's the difference between gross and net profit margin?

Gross margin only takes away the cost of the goods you sold. Net margin takes away every cost: operating expenses, interest and tax. A business can have a healthy gross margin and still lose money if its overheads are too high.

Should shipping and payment fees count in my margin?

For pricing, yes. Accountants often keep them out of gross margin, but you pay them on every order. Open Add real costs to see the net margin per sale and the break-even price with shipping, card or marketplace fees, ads and discounts included.

Why does a discount hurt margin so much?

Because the whole discount comes out of your profit. Cost $40, price $60: profit $20. A 20% discount makes the price $48 and the profit $8, so profit falls by 60% while the price fell by 20%, and the margin drops from 33.3% to 16.7%.

How do I calculate margin in Excel or Google Sheets?

With the cost in A2 and the price in B2:

  • Margin: =(B2-A2)/B2 (format the cell as a percentage)
  • Markup: =(B2-A2)/A2
  • Price for a target margin in C2: =A2/(1-C2)

You can also paste a whole sheet into the Many products tab and export the results as CSV.

Can margin be over 100%?

No. Margin is profit as a share of the price, and profit can never be more than the price (unless your cost is negative). Markup has no ceiling: 200% or 500% is possible. A negative margin means you sell at a loss.

What is keystone pricing?

Doubling the wholesale cost to set the retail price: a 100% markup, which is a 50% margin. It is a common starting point in retail. Tap Keystone in the calculator to apply it.

Is this calculator free?

Yes. No signup, no limits. Everything is calculated in your browser. Your last inputs are remembered in this browser, and the Copy link button lets you share a calculation.

Is this for trading or forex margin?

No. This calculator is for product and service pricing. Brokerage margin for stocks or forex is a different thing.

Updated November 2026

Related free tools

All tools →

Stripe Fee Calculator

See what Stripe, PayPal and Square take from a payment, and what to charge to receive an exact amount.

SaaS Metrics Calculator

Calculate MRR, ARR, churn, LTV, CAC, LTV:CAC, break-even and runway in one place.

eBay and Etsy Fee Calculator

See what eBay or Etsy takes from a sale, what you keep after costs, and the price to list at for the profit you want.

Marketing Calculators

CPM, CPC, CTR, ROI, ROAS and conversion rate calculators for planning and checking ad spend.

Business Plan Template

Fill in a one-page business plan or lean canvas in your browser and download it as a PDF.

Ventora

Sell online with your own store

Know your margins? Put the product online. Ventora builds the store, the checkout and the landing page for you.

Plain words are fine. Edit it before you start.

200 free credits, no card.

  • A working product and landing page you can publish
  • Payments, hosting and custom-domain setup built in
  • Describe it in plain words, no code

The AI-powered platform that turns ideas into revenue-generating products.

Product

  • Dashboard
  • Launch
  • Pricing
  • Cases
  • Blog
  • Made with Ventora
  • Free tools

Company

  • About
  • Investors

Legal

  • Terms of Use
  • Privacy Policy
  • Cookie Policy
  • Data Processing Agreement

For data, legal or abuse inquiries, contact: support@ventora.cc

© 2026 All rights reserved.