Leadership
Profit Margin Calculator
Profit margin calculator that turns revenue and COGS into gross margin and markup, with worked examples, sector benchmarks, and practical tips to raise it.
Your profit margin is the fastest read on whether a sale is actually worth making. This profit margin calculator takes two numbers you already track, revenue and cost of goods sold, and turns them into gross profit margin and markup so you can price with intent instead of guesswork. It matters most to founders, ecommerce sellers, and finance leads who set prices, negotiate supplier deals, or decide which products to keep.
Get the estimate wrong and the damage compounds. Underprice by a few points and you fund your competitor's growth with your own volume; overprice blindly and you lose deals you needed. A thin gross margin also starves the budget you need to acquire and retain customers, which is why margin sits upstream of customer lifetime value. Knowing your true margin tells you how much room you have to invest in the relationships that build CLV over time.
How it's calculated
The math is short, but each input hides decisions. Gross profit is revenue minus COGS, the direct cost of producing or buying what you sold. To calculate gross margin, divide gross profit by revenue and multiply by 100, so it reads as a percentage of every sales dollar you keep after direct costs. Markup answers a different question: divide gross profit by COGS instead, then multiply by 100, which shows how much you added on top of cost.
- Revenue is what you actually collected, net of discounts and returns, not list price.
- COGS covers direct costs only: materials, freight in, and direct labor. Rent, salaries, and marketing belong to net margin, not here.
- If revenue is zero the margin is undefined, and if COGS is zero markup can't be computed.
The most common trap is mixing timeframes, pairing this month's revenue with last month's costs. Understanding how accounts receivable works also helps, since booked revenue and collected cash are not the same thing.
Worked examples
Watching real numbers move makes the margin vs markup distinction click.
Small ecommerce store
Revenue is $10,000 and COGS is $6,000. Gross profit is $4,000. Divide $4,000 by $10,000 for a 40% gross margin. Markup is different: $4,000 divided by $6,000 is 66.7%. Same sale, two very different percentages, which is exactly why sellers confuse them at the checkout.
Higher-cost supplier deal
Revenue is $50,000 and COGS climbs to $42,500. Gross profit is $7,500, so gross margin is 15% while markup is 17.6%. That thin margin leaves almost nothing to fund acquisition, so building customer lifetime value through repeat orders becomes the only path to real profit.
Software product
Revenue is $20,000 with COGS of just $4,000 (hosting and support). Gross profit is $16,000: an 80% gross margin and a 400% markup. High-margin businesses can afford to spend more acquiring customers because CLV outruns cost. Reviewing your product sales mix shows which of these earners deserves more shelf space.
How to improve this metric
- Reprice deliberately. Test small increases on your least price-sensitive SKUs and watch conversion; even a 3% lift often flows straight to gross profit.
- Cut COGS at the source. Renegotiate supplier terms, consolidate orders, or reduce freight, since every dollar off cost widens margin without touching price.
- Shift the mix. Promote high-margin items and retire the ones that dilute your average, guided by your most profitable niches.
- Tighten inventory. Overstock ties up cash and forces markdowns; the right inventory software for small business keeps counts lean.
- Grow CLV, not just orders. Repeat buyers cost less to serve, so retention lifts blended margin and customer lifetime value together.
- Kill hidden discounts. Audit promo codes and shipping subsidies that quietly erode margin.
Benchmarks and context
Gross margin only means something next to peers. US gross margins by sector compiled by Aswath Damodaran at NYU Stern, updated January 2026 across roughly 5,994 firms, show system and application software at 71.7%, apparel at 56.9%, general retail at 33.2%, and restaurants at 32.2%, against a total US market average of 37.8%. So a 40% gross margin is strong for retail but weak for software. For an official reality check, the U.S. Census Bureau's Quarterly Financial Report publishes after-tax margins for manufacturing, wholesale, and retail trade, while the Bureau of Economic Analysis shows economy-wide after-tax margins are far thinner than the gross margins most small businesses track.
Margin also sets your budget for growth. A common rule of thumb targets a customer lifetime value to acquisition cost ratio near 3:1, but treat that as a convention, not a law; depending on the industry the healthy range shifts, and higher CLV justifies spending more to win each customer.
What is the difference between margin and markup?
Margin divides gross profit by revenue, so it is always below 100%. Markup divides the same gross profit by COGS and can exceed 100%. A 40% margin equals a 66.7% markup on identical numbers.
Does this calculator show gross margin or net margin?
It shows gross margin, which counts only direct costs (COGS). Net margin also subtracts operating expenses like rent, salaries, and marketing, so your net margin will be lower than the gross figure here.
What counts as cost of goods sold?
COGS includes direct costs of producing or buying what you sold: materials, inbound freight, and direct labor. It excludes overhead, advertising, and administrative salaries, which belong further down the income statement.
What is a good profit margin?
It depends entirely on your industry. Software routinely clears 70% gross margins while restaurants sit near 32%. Compare against sector data rather than a single universal target before deciding your number is good or bad.
Why does the calculator return no result?
Gross margin needs revenue above zero, and markup needs COGS above zero. If either input is blank or zero, that percentage cannot be calculated and is left empty.