Free Profit Margin Calculator
Three modes: calculate your margin, find the right selling price, or convert between margin and markup.
Key Takeaways
- Profit margin tells you what percentage of your selling price stays in your pocket after covering costs — it is the clearest measure of pricing health.
- Gross margin uses only your product cost (COGS); net margin also subtracts overhead like rent, software, and marketing — giving you the full picture.
- The biggest pricing mistake small business owners make is confusing markup with margin. A 30% markup gives you just a 23% margin — and that gap can wipe out your profit.
Table of Contents
What is Profit Margin?
A profit margin calculator helps you figure out exactly how much money you keep from every sale after paying your costs. It expresses your profit as a percentage of your selling price — so you can instantly tell if your pricing is healthy or if you are barely scraping by.
Think of it like this: if you sell a product for $100 and it costs you $70 to make or buy that product, your gross profit is $30. Your profit margin is 30% — meaning 30 cents of every dollar you bring in is actual profit. The other 70 cents covers your cost of goods sold.
This number matters more than most business owners realize. According to Bench Accounting, profit margin is one of the most reliable indicators of a company’s financial health because it reveals not just whether you are profitable, but how efficiently you turn revenue into real earnings. A high sales number with a razor-thin margin can be far riskier than moderate sales with a comfortable cushion.
For small business owners like Alex — who might be pricing a new product line and worrying about covering all costs — knowing both gross and net profit margin is the difference between guesswork and confidence.
Profit Margin Formula
The gross profit margin formula is straightforward, but there are actually three related formulas you need to understand. Each one answers a different question about your pricing.
Gross Profit Margin Formula
Gross Profit Margin % = ((Selling Price − COGS) ÷ Selling Price) × 100
In plain language: subtract your cost of goods sold from your selling price, divide that number by the selling price, then multiply by 100. The result is the percentage of your revenue that is gross profit — before overhead, taxes, or any other expenses. This formula is cited by both QuickBooks and Bench Accounting as the standard for gross margin calculation.
Net Profit Margin Formula (with Overhead)
Net Profit Margin % = ((Selling Price − COGS − Overhead) ÷ Selling Price) × 100
This version is what makes our profit margin calculator with overhead different from basic tools. You subtract both COGS and your overhead expenses — rent, software subscriptions, marketing costs, shipping supplies — before dividing by selling price. If your overhead eats up most of your gross profit, your net margin will be low even if gross margin looks fine.
Markup Formula (for Comparison)
Markup % = ((Selling Price − COGS) ÷ COGS) × 100
Markup and margin are mathematically related but not interchangeable. According to Brightpearl, a 43% markup produces exactly a 30% margin. The markup formula divides your profit by cost — not by selling price — which is why the percentages are always different. Use the toggle in our calculator above to see this relationship update in real time.
How to Calculate Profit Margin Step by Step
If you want to understand how to calculate profit margin for small business without relying solely on a calculator, here is the manual method broken down. Grab your selling price and cost numbers and follow along.
- Record your selling price per unit. This is what your customer pays — not what you wish they paid, but the actual price on your invoice or product page. For this example, let us use $50.
- Determine your cost of goods sold (COGS) per unit. Include everything directly tied to producing or acquiring the product: materials, manufacturing, wholesale cost, and direct labor. Let us say COGS is $30.
- Subtract COGS from selling price to get gross profit. $50 minus $30 equals $20 in gross profit per unit sold.
- Optional — subtract overhead for net profit. If you want net margin, also subtract per-unit overhead like packaging, platform fees, and a share of your monthly rent. If overhead is $10 per unit, your net profit is now $10.
- Divide profit by selling price and multiply by 100. For gross margin: $20 ÷ $50 × 100 = 40%. For net margin: $10 ÷ $50 × 100 = 20%.
Profit Margin Examples
Real numbers make these formulas click. Here are three scenarios from different types of small businesses, each using our profit margin calculator approach to answer a specific pricing question.
Example 1: Small Retail Store Pricing a Product
Scenario: A boutique owner is pricing handmade candles. The candles cost $30 each to produce (materials, labor, packaging). She plans to sell them for $50 and estimates per-unit overhead — portion of studio rent, website fees, and marketing — at $8 per candle. She wants to know both her gross and net margin before committing to the price.
Known values: Selling Price = $50 | COGS = $30 | Overhead = $8
Gross margin calculation: (($50 − $30) ÷ $50) × 100 = (20 ÷ 50) × 100 = 40% gross margin
Net margin calculation: (($50 − $30 − $8) ÷ $50) × 100 = (12 ÷ 50) × 100 = 24% net margin
What this means: For every candle sold, 40 cents per dollar is gross profit — but after overhead, only 24 cents per dollar is actual net profit. That is a healthy net margin for retail. If overhead were $18 instead of $8, net margin would drop to just 4%, signaling a need to either raise prices or cut overhead costs.
Example 2: Freelancer Setting an Hourly Rate
Scenario: A freelance graphic designer wants to set her hourly rate at $85. Her direct costs per billable hour — software licenses, stock assets, and contractor help — average $15. Monthly overhead like internet, office space, and insurance works out to roughly $20 per billable hour. She needs a net profit margin calculator style analysis to see what she actually keeps.
Known values: Selling Price = $85 | COGS = $15 | Overhead = $20
Net margin calculation: (($85 − $15 − $20) ÷ $85) × 100 = (50 ÷ 85) × 100 = 58.8% net margin
What this means: The freelancer keeps nearly 59% of every dollar billed — very strong for a service business. Even if she lowered her rate to $70, her net margin would still be 50%. This gives her confidence that her pricing has a comfortable cushion for negotiation or slow months.
Example 3: E-Commerce Seller Targeting a Specific Margin
Scenario: An online seller sources kitchen gadgets for $22 each and wants to price them to achieve exactly a 35% gross margin. She also wants to know what markup percentage that corresponds to, so she can explain her pricing logic to a business partner who thinks in markup terms. Our margin vs markup calculator toggle helps here.
Known values: COGS = $22 | Desired Margin = 35% (0.35)
Selling price formula: Selling Price = COGS ÷ (1 − Desired Margin) = $22 ÷ (1 − 0.35) = $22 ÷ 0.65 = $33.85
Corresponding markup: (($33.85 − $22) ÷ $22) × 100 = (11.85 ÷ 22) × 100 = 53.9% markup
What this means: To earn a 35% margin on a $22 product, she must charge $33.85 — not $29.70, which is what she would get if she mistakenly applied a 35% markup instead of a 35% margin. That $4.15 difference per unit adds up fast. Try our pricing strategy calculator to explore how different margin targets change your required selling price.
Profit Margin Tips and Common Mistakes
Even experienced business owners trip over these concepts. Here are the most frequent errors we see — and practical fixes you can apply right now.
Mistake 1: Confusing margin with markup. This is the single most expensive pricing error. If you apply a 30% markup to a $100 cost item, you price it at $130 — but your margin is only 23%, not 30%. To get a 30% margin, you need a 43% markup. Use the built-in margin vs markup calculator toggle above to see the correct conversion every time.
Mistake 2: Ignoring overhead in profitability analysis. A product with a healthy 50% gross margin can still lose money after overhead. If your per-unit overhead is high — common for businesses with physical storefronts or large software stacks — your net margin might be negative even when gross margin looks great. Always run both numbers.
Mistake 3: Underpricing by using cost-plus instead of margin-based pricing. Cost-plus pricing adds a flat dollar amount or percentage markup to cost. Margin-based pricing starts with the selling price needed to hit a target margin. The difference is subtle but critical — margin-based pricing protects your profitability as costs change.
Mistake 4: Neglecting per-unit cost analysis. Many small business owners estimate costs in aggregate. But per-unit precision matters. A $1 miscalculation in COGS per unit, multiplied across 10,000 units, is a $10,000 error. Use our COGS calculator to lock in accurate cost figures before running margin calculations.
For reference, here are typical net profit margin ranges by business type, drawn from industry benchmarks cited by Bench Accounting and QuickBooks:
| Business Type | Typical Net Margin Range |
|---|---|
| Retail (general merchandise) | 2% – 8% |
| Restaurant / Food Service | 3% – 9% |
| Freelance / Professional Services | 15% – 40% |
| E-Commerce | 5% – 20% |
| Software / SaaS | 15% – 30% |
If your net margin falls below these ranges, it is a signal to revisit your pricing, renegotiate supplier costs, or trim overhead. A net margin of 20% to 40% is generally considered healthy across most small business categories — but always benchmark against your specific industry.
Frequently Asked Questions
What is the difference between profit margin and markup?
Profit margin divides your profit by the selling price, while markup divides profit by the cost. For the same dollar profit, markup percentage is always higher. For example, a product costing $70 and selling for $100 has a 30% margin but a 43% markup. Confusing the two leads to underpricing — a 30% markup only gives you a 23% margin.
How do you calculate a 30% profit margin?
To achieve a 30% profit margin, divide your COGS by 0.70 (which is 1 minus 0.30). The formula is: Selling Price = COGS ÷ (1 − 0.30). For example, if your COGS is $70, you need to charge $100 to earn a 30% margin ($70 ÷ 0.70 = $100). This is the reverse of the standard margin formula and is built into Mode 2 of our calculator above.
What is a healthy net profit margin for a small business?
A net profit margin of 20% to 40% is generally considered healthy for most small businesses, though the range varies significantly by industry. Retail businesses often operate on 2% to 8% net margins, while freelance services can reach 40% or higher. The key is benchmarking against your specific sector and tracking your own trend over time rather than chasing a universal number.
How does overhead affect profit margin?
Overhead directly reduces your net profit margin by subtracting from gross profit. A product with a 50% gross margin can end up with a 10% net margin — or lower — after overhead like rent, software, marketing, and administrative costs are allocated. Our profit margin calculator includes an overhead field specifically so you can see this impact instantly rather than discovering it at tax time.
Can profit margin be negative? What does that mean?
Yes, profit margin can be negative — and it means you are selling at a loss. A negative gross margin occurs when your COGS exceeds your selling price. A negative net margin happens when COGS plus overhead exceeds your selling price. Either scenario is unsustainable. If our calculator shows a red warning, you need to raise prices, cut costs, or both — immediately.
How do I find the selling price to reach my target margin?
Use the formula Selling Price = COGS ÷ (1 − Desired Margin %) where the desired margin is expressed as a decimal. For a 25% target margin with $45 COGS: $45 ÷ (1 − 0.25) = $45 ÷ 0.75 = $60. Switch to Mode 2 in the calculator above, enter your COGS and desired margin, and the tool calculates the required selling price instantly.
Should I use gross margin or net margin for pricing decisions?
Use both, but for different purposes. Gross margin helps you evaluate product-level profitability and compare items in your lineup. Net margin — which includes overhead — tells you whether your overall business model works. For initial pricing, start with gross margin to set a floor, then use net margin to confirm the price covers all operating expenses and still delivers profit.
What common mistakes do small businesses make when calculating profit margins?
The most frequent errors are confusing markup with margin (leading to underpricing), forgetting to include overhead in the calculation, using estimated costs instead of actual figures, and failing to recalculate margins when supplier costs change. Using a profit margin calculator that handles both gross and net margin — like the one at the top of this page — helps you avoid all four mistakes in one place.
Related Calculators
If you found this calculator helpful, you might also need:
Getting your pricing right does not have to be complicated. Whether you are setting prices for a new product line, reviewing existing margins, or trying to understand why your bank balance does not match your sales numbers, a profit margin calculator gives you clarity in seconds. Scroll back up and try ours now — enter your selling price, costs, and overhead, and see exactly where you stand. It only takes a few seconds to replace guesswork with real numbers.