Average profit margin calculator with weighted average

Enter revenue and profit for several months, products or clients to see each margin and your true overall margin. It shows why the simple average of percentages is often wrong, and which rows pull it off.

Margin summaryAverage profit margin · updates as you type
Products 5 of 24
30.0%
39.0%
13.0%
52.0%
58.0%

Weighted gross margin28.6%$285,800 on $1,000,000 revenueModerate gross margin
Simple average38.4%average of 5 margins
Gap+9.8 ptssimple average is higher
Best product58.0%Accessories
Worst product13.0%Wholesale
Spread45.0 ptsbest minus worst
Gross margin by product5 products · $1,000,000 revenue
    Totals across all rows, with the weighted and simple average margins
    Totals · 5 productsAmount% of rev.
    Sample numbers. Replace them with yours.
    • Weighted vs simple average
    • Gross / operating / net
    • Up to 24 rows
    • No sign-up

    Add this tool to your site

    Paste this code into any page. It stays free and updates automatically.

    How it works

    Every row, one real margin.
    Weighted by the revenue behind it.

    1. 01

      Choose your rows

      Pick months, quarters, products or clients, then choose gross, operating or net margin. Labels and benchmarks follow.

    2. 02

      Enter revenue and profit

      One row each. Switch the second column to costs if that's what your report shows. Use −5,000 or (5,000) for a loss.

    3. 03

      Compare the two averages

      The weighted average is total profit ÷ total revenue. The simple average treats every row the same. The gap shows how much your mix matters.

    4. 04

      Find the levers

      See the best and worst rows, the spread between them, and how much one more point of margin on your biggest row is worth.

    The formula

    Weighted average margin = Total profit ÷ Total revenue × 100

    Example: five products with $1,000,000 of revenue and $285,800 of gross profit have a 28.6% weighted gross margin. Their individual margins of 30%, 39%, 13%, 52% and 58% average 38.4%, a 9.8-point gap, because the 13% product brings in 42% of revenue.

    What the gap between the two averages means

    GapWhat it usually means
    Under 1 pointRevenue and margins are spread evenly. Either average gives about the same answer.
    1–3 pointsSome mix effect. Report the weighted figure and keep an eye on your largest rows.
    3–6 pointsYour biggest rows have noticeably different margins from the rest. Plan with the weighted average only.
    Over 6 pointsThe simple average is misleading. Look at your large, low-margin rows first.

    What average profit margin means

    Profit margin is profit as a share of revenue. A product that sells for $100 and leaves $30 of profit has a 30% margin. Most businesses have more than one margin to look at: one per month, per quarter, per product line or per client.

    The average profit margin answers a simple question: across all of those, what share of revenue do you keep? There are two ways to work it out, and they often give different answers.

    Simple average vs weighted average

    The simple average adds up each row's margin and divides by the number of rows. Every row counts the same, whether it brought in $5,000 or $500,000.

    The weighted average divides total profit by total revenue. Big rows count for more because they hold more of the money. This is the margin that actually shows up in your accounts, so it's the one to report and plan with.

    A two-month example shows the difference. January brings in $10,000 at a 50% margin and February brings in $90,000 at 10%. The simple average is 30%. But total profit is $5,000 + $9,000 = $14,000 on $100,000 of revenue, so the real margin is 14.0%. The simple average is 16 points too high because January is small.

    A worked example across five products

    The calculator opens with five products:

    • Starter kit: $180,000 revenue, $54,000 gross profit, 30.0% margin
    • Pro bundle: $260,000 revenue, $101,400 gross profit, 39.0% margin
    • Wholesale: $420,000 revenue, $54,600 gross profit, 13.0% margin
    • Refill packs: $90,000 revenue, $46,800 gross profit, 52.0% margin
    • Accessories: $50,000 revenue, $29,000 gross profit, 58.0% margin

    The simple average of the five margins is 38.4%. Total gross profit is $285,800 on $1,000,000 of revenue, so the weighted gross margin is 28.6%. The gap is 9.8 points.

    The reason is the revenue mix. Wholesale bring in 42.0% of revenue at the lowest margin, but in the simple average they count as one product in five. Accessories and Refill packs have the best margins and only 14% of revenue between them. The spread from best to worst is 45.0 points.

    Which average to use

    • Reporting and planning: use the weighted average. It matches your profit and loss statement and tells you how much of the next $100 of revenue you keep, if the mix stays the same.
    • Comparing how rows are priced: look at each row's own margin and the spread. The simple average can help as a rough "typical row" figure, but don't treat it as your margin.
    • Monthly or quarterly trends: a seasonal business with one big month at a lower margin will see the same gap. Total the year first, then divide.

    If the two averages are within a point of each other, revenue is spread fairly evenly across rows with similar margins, and either answer is close.

    Gross, operating or net margin

    The maths is the same for all three. What changes is which costs you take off.

    • Gross margin takes off the direct cost of what you sold: cost of goods sold, or cost of revenue for a service business.
    • Operating margin also takes off running costs like salaries, rent, software and marketing.
    • Net margin takes off everything, including interest and tax.

    Pick one and enter the matching profit (or costs) for every row. Mixing gross profit for one row with net profit for another makes the average meaningless. What counts as healthy depends heavily on the industry, so compare against businesses like yours rather than one universal number.

    Common mistakes

    • Averaging percentages. The most common one. Averaging 13% and 58% says nothing about how much money you made unless the rows are the same size.
    • Leaving out loss-making rows. A product with a negative margin still drags the total down. Include it.
    • Rows with no revenue. A row with costs but no revenue has no margin. Move its costs into another row or into overheads.
    • Different periods. Don't mix a full year for one product with a quarter for another.
    • Chasing volume on thin rows. Growing the biggest, lowest-margin row raises revenue but lowers the overall margin. In the example, each extra point of margin on Wholesale adds $4,200 of gross profit, more than a point anywhere else.

    To work out the cost side for a product business, use the Cost of Goods Sold Calculator. Software companies can break down cost of revenue with the SaaS Gross Margin Calculator, and the Break-Even Point Calculator turns your margin into a sales target. If your margins are healthy and you need more customers, see our growth services.

    FAQ

    Questions,
    answered.

    It's the share of revenue you keep as profit across several months, products or clients. The correct way to work it out is total profit divided by total revenue, which gives a revenue-weighted average. Averaging each row's margin gives a different number when rows are different sizes.

    Add up profit for every row, add up revenue for every row, then divide total profit by total revenue and multiply by 100. With $285,800 of gross profit on $1,000,000 of revenue, the average gross margin is 28.6%.

    Only if every row has the same revenue. Otherwise small rows count as much as big ones. In the sample, the five product margins average 38.4%, but total gross profit divided by total revenue is 28.6%, a 9.8-point gap.

    Because your biggest rows have below-average margins, or your best-margin rows are small. In the sample, Wholesale bring in 42.0% of revenue at a 13.0% margin, which pulls the weighted figure down. When big rows have the best margins, the weighted average comes out higher instead.

    The weighted average: total profit divided by total revenue. It matches your profit and loss statement and tells you how much of each dollar of revenue you keep with your current mix. Use each row's own margin to compare products, months or clients.

    Yes. The calculation is the same. Choose the margin type at the top and enter the matching figure for every row: gross profit, operating profit or net profit, or the matching costs. Don't mix types across rows.

    Yes. Switch the second column to costs and the calculator works out profit as revenue minus costs for each row. Numbers you've already entered are converted, so the result doesn't change when you switch.

    How uneven your margins are. In the sample, Accessories earn 58.0% and Wholesale 13.0%, a 45.0-point spread. A wide spread means your overall margin depends heavily on the mix, so a shift in what sells moves it a lot.

    Yes. It's free, with no sign-up, and nothing you enter leaves your browser. Your last rows are saved on your device, and Copy link gives you a shareable link to the result.

    Done-for-you

    Good margins need steady demand.

    We help B2B teams win more customers through outbound, search and AI recommendations, so more of your revenue comes from the products and clients that pay best.