Business Pricing and Profitability

Profit Margin Calculator Gross Profit, Gross Margin, Markup, and Cost Ratio

Enter your landed unit cost and tax-exclusive selling price to calculate gross profit per unit, gross margin percentage, markup rate, and cost ratio. Add monthly sales volume to project revenue and annual gross profit, and test +/-10% and +/-20% price shifts.

Last Updated: 27 October 2026

Your pricing details

Enter the direct cost price and selling price to see the margin, markup, and cost ratio. Add units sold for a volume projection.

Nothing is stored
Cost & Price
Projections (Optional)

Financial Estimate Disclaimer: Results generated by this calculator are unit-level gross margin and markup estimates based solely on the cost and selling price you enter. They exclude fixed operating expenses (rent, administrative payroll, marketing), payment processing fees, customer returns, inventory shrinkage, loan interest, and corporate or pass-through sales taxes unless explicitly included in your unit inputs. Outputs are provided for informational and commercial planning purposes only and do not constitute professional accounting, tax, or financial advice. Verify your landed unit costs and consult a qualified accountant or financial advisor before finalizing commercial pricing or financial statements. Read full limitations.
Your gross profit margin
—
Percentage of every unit of revenue that stays as gross profit.
Gross profit per unit — Selling price minus cost
Markup rate — Gross profit as a percentage of cost
Cost ratio — Cost as a percentage of selling price
What this usually means

—

Pricing breakdown

Gross profit per unit sold —

Business reference points

Gross margin is positive (selling price covers cost) —
Gross margin is in the healthy range for the selected sector —
Markup rate exceeds 100 per cent (selling price more than doubles cost) —
Cost ratio below 60 per cent (a common target for retail and services) —

Pricing sensitivity table

How gross profit, gross margin, and markup shift if the selling price moves by 10% or 20% in either direction while unit cost stays constant.

Selling price Gross profit Margin % Markup %

Optional AI insight

A short written read on where this margin sits against typical sector benchmarks, and which pricing adjustments would move the margin or the markup most. Nothing leaves your browser until you press the button.

What this profit margin calculator measures

This calculator takes two foundational unit-economics inputs—your direct unit cost price and your net selling price—and computes the four figures every founder, merchant, and commercial manager needs before publishing a price list: gross profit per unit, gross profit margin percentage, markup percentage, and cost of goods ratio. When you add monthly unit sales volume and an optional industry category, it also projects monthly revenue, monthly gross profit, and annual gross profit, alongside a five-row pricing sensitivity table showing how a 10% or 20% price move alters unit profitability.

Although the arithmetic behind a single item looks simple, confusing margin with markup or omitting landed import and fulfillment charges is one of the fastest ways profitable-looking revenue turns into a cash-flow deficit. If an item costs $60.00 to land in your warehouse and you want a 40% gross margin, your selling price must be $100.00. A seller who mistakenly adds a 40% markup sets the price at $84.00, earns $24.00 per unit instead of $40.00, and finishes with a 28.57% gross margin—giving away $16.00 of pure gross profit on every unit sold. Across 500 units a month, that single denominator mix-up strips $96,000 a year directly off the bottom line.

Every calculation executes locally inside your browser tab. No pricing sheets, supplier rates, or sales volumes are uploaded or stored on any server. If you choose to press the optional AI insight button, only an anonymous numerical summary of the entered cost, selling price, computed ratios, and unit volume is sent once to generate commentary.

Core profitability formulas: gross profit, margin, markup, and cost ratio

Four interrelated numbers describe the unit economics of any physical product, software seat, menu item, or billable service package. Each metric answers a distinct operational question:

  • Gross profit per unit: The absolute cash amount remaining from a single sale after paying the direct cost required to buy, manufacture, or deliver that unit. Gross profit dollars—not percentages—pay fixed rent, salaries, marketing budgets, debt service, and taxes.
  • Gross profit margin (%): Gross profit expressed as a share of the net selling price. It tells you how many cents out of every dollar of customer revenue stay inside the business before fixed overhead. Financial statements, investor reporting under IFRS and US GAAP, and industry benchmarks always quote margin on revenue.
  • Markup (%): Gross profit expressed as a percentage of the direct unit cost. Wholesalers, contractors, importers, and retail buyers routinely build price sheets using markup multipliers because unit cost is the known starting figure on a supplier invoice.
  • Cost ratio (%): Direct unit cost divided by net selling price. Cost ratio and gross margin are exact complements that always sum to 100%: a 40.00% gross margin automatically implies a 60.00% cost ratio.
Gross Profit = Selling Price - Cost Price
Gross Margin (%) = [(Selling Price - Cost Price) / Selling Price] x 100
Markup (%) = [(Selling Price - Cost Price) / Cost Price] x 100
Cost Ratio (%) = (Cost Price / Selling Price) x 100 = 100% - Gross Margin (%)

Currency-neutral math: Because gross margin, markup, and cost ratio are dimensionless percentages, the underlying formulas work identically whether your books are kept in US dollars (USD), Kenyan shillings (KES), Nigerian naira (NGN), South African rand (ZAR), Ghanaian cedis (GHS), British pounds (GBP), or euros (EUR). Simply enter cost price and selling price in the same currency.

Gross margin versus markup: conversion formulas and reference ladder

Gross margin and markup share the exact same numerator (Gross Profit = Selling Price minus Cost Price), so they never disagree about how many dollars you earned on a sale. They diverge solely because margin divides by the selling price whereas markup divides by the cost price. On every profitable item, selling price is larger than cost price, which mathematically forces gross margin percentage to be smaller than markup percentage.

Notice what happens as product profitability rises: at low margins (such as 15% margin vs. 17.65% markup), the two percentages sit fairly close together. As target margin climbs above 40%, the required markup accelerates sharply—a 50% gross margin requires a 100% markup (doubling cost, known in retail as keystone pricing), a 66.67% margin requires a 200% markup (tripling cost), and an 80% SaaS or cosmetics margin requires a 400% markup (five times unit cost). Gross margin on a positive-cost item can approach 100% asymptotically but can never reach or exceed 100%, whereas markup has no upper ceiling.

Two-panel infographic comparing gross margin and markup on a $100 sale with a $60 direct cost ($40 gross profit equals 40.0% margin and 66.7% markup) alongside a curve plotting required markup percentages from 20% margin up to 75% margin (300% markup).
Figure 1: Why gross margin and markup diverge. Dividing $40 of gross profit by the $100 selling price gives a 40.0% margin, whereas dividing that same $40 profit by the $60 unit cost gives a 66.7% markup. Reaching a 75% gross margin requires a 300% markup (4.00x cost).

You can convert directly between markup and margin without knowing the dollar cost or price of an item by using their decimal forms (for example, 40% = 0.40):

Gross Margin (decimal) = Markup / (1 + Markup)
Markup (decimal) = Gross Margin / (1 - Gross Margin)
Price Multiplier on Cost = 1 + Markup = 1 / (1 - Gross Margin)

Keep the conversion ladder below as a rapid commercial check when translating supplier markup rules into income-statement gross margins on an item with a $60.00 landed unit cost:

Target Gross Margin Required Markup Cost Multiplier Cost Ratio Selling Price ($60 Cost) Unit Gross Profit
15.00% 17.65% 1.18x 85.00% $70.59 $10.59
20.00% 25.00% 1.25x 80.00% $75.00 $15.00
25.00% 33.33% 1.33x 75.00% $80.00 $20.00
30.00% 42.86% 1.43x 70.00% $85.71 $25.71
33.33% 50.00% 1.50x 66.67% $90.00 $30.00
40.00% 66.67% 1.67x 60.00% $100.00 $40.00
50.00% (Keystone) 100.00% 2.00x 50.00% $120.00 $60.00
60.00% 150.00% 2.50x 40.00% $150.00 $90.00
66.67% 200.00% 3.00x 33.33% $180.00 $120.00
75.00% 300.00% 4.00x 25.00% $240.00 $180.00
80.00% 400.00% 5.00x 20.00% $300.00 $240.00

Reverse pricing from a target margin and handling VAT or sales tax

When you already know your unit cost and need to find the exact selling price that delivers a required gross margin, invert the margin equation rather than guessing prices by trial and error. Divide the direct unit cost by one minus your target gross margin decimal:

Required Net Selling Price = Unit Cost / (1 - Target Gross Margin)
Tax-Inclusive Shelf Price = Required Net Selling Price x (1 + VAT or Sales Tax Rate)
Net Revenue from Tax-Inclusive Price = Tax-Inclusive Shelf Price / (1 + VAT or Sales Tax Rate)

For example, suppose a hardware distributor lands an inverter battery at $135.00 and requires a 32.5% gross margin to cover showroom overhead and warranty support. Dividing $135.00 by (1 - 0.325) = $135.00 / 0.675 produces a required net selling price of exactly $200.00 (yielding $65.00 gross profit, a 32.50% margin, and a 48.15% markup).

Why VAT and retail sales tax distort margin calculations

In jurisdictions where consumer shelf prices are displayed inclusive of Value-Added Tax or Goods and Services Tax—such as 16% VAT in Kenya, 15% VAT in South Africa, 7.5% VAT in Nigeria, or 20% VAT in the United Kingdom—entering the tax-inclusive checkout total into a margin calculator overstates both gross profit and gross margin. VAT collected from buyers is held in trust for the revenue authority and is never recognised as top-line revenue under IFRS 15 or US GAAP.

Consider what happens on that $135.00 battery if a VAT-registered merchant mistakenly prices the shelf tag at $200.00 inclusive of 16% VAT instead of adding VAT on top of $200.00:

  • Correct VAT-exclusive workflow: Start with the $200.00 required net price and multiply by 1.16 to print a shelf tag of $232.00 (inclusive of $32.00 output VAT). The merchant remits the $32.00 output VAT (less input VAT reclaimed on the purchase), retains $200.00 in net revenue, subtracts the $135.00 net cost, and keeps the full $65.00 gross profit (32.50% margin).
  • Costly tax-inclusive mistake: If the merchant puts $200.00 on the shelf tag inclusive of 16% VAT, true net revenue is $200.00 / 1.16 = $172.41 ($27.59 belongs to the tax authority). Subtracting the $135.00 cost leaves only $37.41 of gross profit—collapsing realized gross margin from 32.50% down to 21.70%, a 42.4% drop in dollar profit per unit.
  • Rule for non-VAT-registered small traders: If your annual turnover sits below the statutory VAT registration threshold so you neither charge output VAT to customers nor reclaim input VAT paid to suppliers, enter your full VAT-inclusive purchase invoice into Cost price, because unrecoverable input tax is a permanent part of your unit acquisition cost.

Assembling true landed unit cost (COGS) versus operating overhead

A margin calculation is only as honest as the cost figure entered in the first box. Under International Accounting Standard 2 (IAS 2, Inventories) and IRS Cost of Goods Sold rules, Cost of Goods Sold (COGS)—also called cost of sales—captures every direct cost incurred in bringing a product or service to its present location and sellable condition, and excludes general overhead incurred regardless of unit volume.

Small importers and online merchants frequently enter the factory or wholesale unit price alone—for instance, $42.00 ex-works—while forgetting ocean or air freight, transit insurance, customs tariff duties, port clearing charges, primary retail packaging, and normal defect or spoilage allowances. If those five ancillary layers add $9.00 per unit, true landed cost is $51.00 rather than $42.00. Pricing off $42.00 creates a phantom 9-point margin illusion on paper that evaporates when freight forwarder and customs invoices clear the bank.

Two-column classification diagram showing direct unit COGS components on the left ($42.00 supplier ex-works cost, $3.50 inbound freight and insurance, $2.50 customs duty and clearing, $1.80 primary packaging, and $1.20 spoilage allowance totaling $51.00 true landed cost) versus excluded operating expenses on the right (fixed rent, salaried admin payroll, advertising, general software, and interest or corporate tax).
Figure 2: Separating direct landed unit cost (above the gross profit line) from operating and financing expenses (below the gross profit line). Omitting inbound freight, duties, packaging, and normal shrinkage from unit cost inflates reported gross margin.

How COGS is defined across four business models

  • Retail, distribution, and cross-border import: Supplier wholesale price net of trade discounts, plus inbound freight, marine/transit insurance, import customs duties, excise levies, clearing-agent fees, and primary product labels or protective boxes required before the item can be shelved.
  • Manufacturing and light assembly: Bill of materials (raw materials, sub-components, fasteners), direct production wages of assembly-line workers, direct packaging, and allocated variable factory overhead (production power, machine consumables, quality-testing batches).
  • Software and SaaS subscriptions: Cloud hosting and database compute consumed by active tenants, third-party API calls or AI token inference embedded inside the product, transactional SMS/email delivery, dedicated customer onboarding or technical support engineers, and amortized third-party software royalties. Core product engineering R&D and sales commissions sit below gross margin as operating expenses.
  • Professional services and agencies: Direct billable contractor hours, project-specific freelancers, client-dedicated software licenses, and reimbursable or direct project production outlays. Full-time administrative staff, office leases, and business-development travel remain operating overhead.

Four margin tiers compared: gross, contribution, operating, and net margin

Business owners often ask why their bank balance grows slowly even when their product catalog averages a 52% gross margin. The answer lies in the three expense layers between gross profit and bottom-line net income. Financial analysts track four distinct margin percentages down an income statement, each isolating a specific layer of business efficiency:

Income statement waterfall chart starting at $100.00 Gross Revenue (100%), subtracting $48.00 Direct COGS to reach $52.00 Gross Profit (52.0% Margin), subtracting $12.00 Variable Fees and Shipping to reach $40.00 Contribution (40.0% Margin), subtracting $28.00 Fixed Overhead and Ads to reach $12.00 Operating EBIT (12.0% Margin), and subtracting $3.00 Interest and Tax to reach $9.00 Net Profit (9.0% Net Margin).
Figure 3: How $100.00 of customer revenue steps down across the four margin tiers. A healthy 52.0% gross margin becomes a 40.0% contribution margin after variable order fees, a 12.0% operating margin after fixed overhead and marketing, and a 9.0% net profit margin after debt interest and corporate tax.
Margin Tier Formula Costs Deducted at This Step Primary Decision Use
Gross Profit Margin (Revenue - Direct COGS) / Revenue Landed product cost, raw materials, inbound freight, direct production labor Unit SKU pricing, supplier negotiation, and sector benchmarking
Contribution Margin (Revenue - COGS - Variable Selling Costs) / Revenue Outbound shipping subsidies, pick-and-pack, payment gateway fees, sales commissions, returns Break-even unit volume math, paid ad spend ceilings (max CPA), and discount testing
Operating Margin (EBIT %) Operating Income (EBIT) / Revenue Fixed rent, admin salaries, marketing overhead, general software, equipment depreciation Core operational efficiency independent of how the business is financed or taxed
Net Profit Margin Net Income / Revenue Loan interest, foreign-exchange losses, non-operating items, and corporate income tax True bottom-line distributable earnings, dividend capacity, and retained cash growth

When using this calculator for unit pricing, keep the distinction between Gross Margin and Contribution Margin sharp. If you sell a $100.00 item with $48.00 landed COGS (52.0% gross margin), but every order also incurs $5.50 in outbound courier subsidies, $3.30 in card gateway fees, and $3.20 in expected return/exchange write-offs ($12.00 total variable selling costs), each order actually contributes $40.00 (40.0% contribution margin) toward paying fixed rent, payroll, and advertising. Using our Break-Even Calculator alongside that $40.00 unit contribution immediately tells you how many monthly orders are required to cover fixed overhead.

Industry gross margin and net profit margin benchmarks

Comparing a bakery's 62% ingredient gross margin against a SaaS company's 82% gross margin—or judging a wholesale distributor's 18% gross margin as weak without checking inventory turnover—leads to flawed decisions. High-gross-margin sectors almost always carry heavy fixed research, payroll, rent, or customer acquisition expenses below the gross profit line, which compresses net profit margins far closer together across industries than gross margins suggest.

Industry Sector Typical Gross Margin Typical Net Margin Why Gross and Net Margins Differ
Software & B2B SaaS 70% – 90% 10% – 25% Low marginal cloud hosting per user, but substantial fixed engineering payroll and customer acquisition spend below gross profit.
Professional & Consulting Services 50% – 70% 12% – 22% No physical inventory, but unbilled bench time, office leases, professional indemnity insurance, and business development absorb margin.
Apparel, Beauty & D2C E-Commerce 50% – 70% 6% – 15% High markups over factory cost are required to fund paid social advertising, free-shipping thresholds, return logistics, and seasonal markdowns.
General Retail & Hardware 30% – 50% 4% – 10% Brick-and-mortar retail rent, floor staff wages, slow-moving stock financing, and shrinkage eat most of the gross spread.
Manufacturing & Light Industry 25% – 40% 5% – 12% Raw material volatility, energy intensity, factory depreciation, and quality-control rework cap unit gross margins.
Restaurants, Cafes & Catering 55% – 70% (food/bev COGS) / 15% – 30% (after kitchen labor) 3% – 9% Raw ingredients often cost 28%–35% of menu price, but adding direct kitchen wages, spoilage, utilities, and high-street rent leaves thin net margins.
Supermarkets & Grocery Retail 18% – 28% 1.5% – 4% Intense price transparency on staple goods forces low unit margins compensated by rapid weekly inventory turnover.
Wholesale & B2B Distribution 12% – 25% 2% – 6% Bulk pallet orders carry low fulfillment overhead per unit and rely on high contract volume and trade credit discipline.

Notice the restaurant row in particular: hospitality accountants track food cost percentage (raw ingredients divided by menu price, typically 28% to 35%, equivalent to a 65% to 72% raw-ingredient margin) separately from prime cost (raw ingredients plus direct kitchen and floor labor plus payroll taxes, typically 60% to 65% of sales, leaving a 35% to 40% margin after prime cost). In this calculator's Food preset ($6.50 cost on a $10.00 menu item = 35.00% margin), $6.50 represents combined food-plus-direct-prep prime cost.

Three worked real-world pricing examples

Example 1: Imported leather backpack (retail and e-commerce landed cost)

An online accessories brand imports 200 leather backpacks. Supplier ex-works price is $38.00 per bag, sea freight and insurance total $900 ($4.50/bag), customs duty and clearing total $840 ($4.20/bag), branded dust bags and cartons cost $1.80/bag, and historical inspection rejects run at 3% of batch cost ($1.50/bag allowance). Summing every direct layer produces a true landed unit cost of $50.00.

The founder targets a 55.00% gross margin so there is sufficient room for paid search ads and courier subsidies:

  • Required net selling price: $50.00 / (1 - 0.55) = $50.00 / 0.45 = $111.11 (rounded commercially to $112.00 net of VAT).
  • Actual metrics at $112.00 selling price: Gross profit = $112.00 - $50.00 = $62.00 per bag; Gross margin = ($62.00 / $112.00) x 100 = 55.36%; Markup = ($62.00 / $50.00) x 100 = 124.00%; Cost ratio = 44.64%.
  • Cost of omitting landed charges: Had the founder priced off the $38.00 supplier invoice alone ($38.00 / 0.45 = $84.44 selling price), actual profit after paying the $50.00 landed cost would have been $34.44—a realized margin of 40.79% instead of 55%, forfeiting $27.56 per bag ($5,512 across the 200-unit shipment).

Example 2: B2B SaaS workflow subscription (high gross margin, recurring volume)

A B2B software team charges $120.00 per company per month for an inventory workflow platform with 500 active paying accounts. Direct monthly COGS per active tenant consists of $6.20 in cloud database and storage compute, $4.10 in automated WhatsApp/SMS dispatch notifications, and $4.70 in allocated tier-1 technical support payroll—totaling $15.00 direct monthly cost per customer.

  • Unit profitability: Gross profit = $120.00 - $15.00 = $105.00/month; Gross margin = ($105.00 / $120.00) x 100 = 87.50%; Markup = ($105.00 / $15.00) x 100 = 700.00%; Cost ratio = 12.50%.
  • Volume projection (500 accounts): Monthly revenue = $60,000; Monthly gross profit = $52,500; Annual gross profit = $630,000. That $52,500 monthly gross profit pool funds the company's $34,000 fixed engineering and sales payroll plus $8,500 in marketing, leaving $10,000/month (16.67% operating margin) before corporate tax.

Example 3: Specialty cafe lunch bowl (adjusting unit cost for spoilage and waste)

In fresh food retail, buying 100 portions of avocados, greens, and grilled chicken never yields 100 paid plates—prep trimmings, end-of-day spoilage, and remade orders consume part of every purchase batch. To prevent unrecorded kitchen waste from silently eroding margin, adjust raw recipe cost upward by your waste rate using Spoilage-Adjusted Unit Cost = Raw Recipe Cost / (1 - Waste Rate).

Suppose a cafe's grain bowl uses $3.22 in raw ingredients, $2.26 in direct prep labor, and $0.50 in compostable takeaway packaging ($5.98 base cost), with an observed 8% ingredient and prep waste rate ($5.98 / 0.92 = $6.50 effective cost per sold bowl). At a net menu price of $10.00 across 800 bowls per month:

  • Unit profitability: Gross profit = $10.00 - $6.50 = $3.50 per bowl; Gross margin = 35.00%; Markup = 53.85%; Cost ratio = 65.00%.
  • Monthly and annual impact: 800 bowls generate $8,000 monthly revenue, $2,800 monthly profit after prime cost, and $33,600 annually toward fixed shop rent, electricity, and owner earnings.

Promotional discounting math: extra volume needed to break even

Running a "20% Off Weekend Flash Sale" feels harmless when you look only at top-line revenue, yet discounting is the single most asymmetric lever in commercial finance. When you cut your selling price by 20%, your supplier does not cut your unit COGS by 20%—the entire price reduction comes straight out of your unit gross profit.

Take our baseline retail item ($60.00 cost, $100.00 regular price, $40.00 gross profit, 40.0% gross margin) at 100 units per month ($4,000 monthly gross profit). If you offer a 20% promotional discount, the selling price drops to $80.00 while unit cost stays anchored at $60.00. Unit gross profit plunges from $40.00 to $20.00 (a 50% collapse in profit per unit, reducing realized margin to 25.00%). To earn the exact same $4,000 monthly gross profit at $20.00 per unit, you must now sell 200 units instead of 100—doubling physical order volume (+100.0%) while doing twice the picking, packing, and customer support work for zero additional dollar profit.

Grouped horizontal bar chart showing extra unit sales volume required to keep total gross profit unchanged after a 10% price cut versus a 20% price cut across 60%, 50%, 40%, and 30% base gross margins—reaching +100.0% units (2x sales) at 40% margin and +200.0% units (3x sales) at 30% margin for a 20% discount.
Figure 4: Extra unit sales volume required just to keep total gross profit flat during a promotion. At a 30% base gross margin, a 20% price cut leaves only 10% of the original price as profit—requiring triple the unit volume (+200.0%) to break even.

Before launching any coupon code, Black Friday markdown, or B2B volume rebate, calculate the exact break-even unit volume uplift using this formula:

Required Extra Unit Volume (%) = [Discount % / (Base Gross Margin % - Discount %)] x 100
New Realized Gross Margin (%) = [(Base Gross Margin % - Discount %) / (100% - Discount %)] x 100
Starting Gross Margin 5% Price Cut 10% Price Cut 15% Price Cut 20% Price Cut 25% Price Cut
25% Base Margin +25.0% units +66.7% units +150.0% units +400.0% units Zero profit (0%)
30% Base Margin +20.0% units +50.0% units +100.0% units +200.0% units +500.0% units
35% Base Margin +16.7% units +40.0% units +75.0% units +133.3% units +250.0% units
40% Base Margin +14.3% units +33.3% units +60.0% units +100.0% units +166.7% units
50% Base Margin +11.1% units +25.0% units +42.9% units +66.7% units +100.0% units
60% Base Margin +9.1% units +20.0% units +33.3% units +50.0% units +71.4% units
75% Base Margin +7.1% units +15.4% units +25.0% units +36.4% units +50.0% units

Whenever your starting gross margin sits below 40%, straight percentage-off sitewide discounts rarely generate enough incremental volume to pay for themselves. Value-added bundles ("spend $120, receive a high-margin accessory that costs us $4.50") or tiered minimum-order thresholds protect unit margin far better than flat price cuts.

Payment fees, returns, and multi-product blended portfolio margin

Accounting for payment gateways, marketplace commissions, and returns

Online card processors, mobile money merchant tills, and marketplaces deduct a percentage plus a fixed per-transaction fee before settling cash to your bank account. On a $30.00 e-commerce order costing $20.00 in COGS ($10.00 nominal gross profit, 33.33% margin), a 3.49% + $0.49 processor fee removes $1.54—trimming net cash profit to $8.46 and cutting effective margin down to 28.20% (see our PayPal & Payment Fee Calculator for exact gateway schedules). Marketplace referral commissions of 8% to 15% and non-resellable product returns erode realized margin even faster. When building retail price sheets for thin-margin catalogs, add expected gateway fees and return write-offs into a separate variable-cost column so you never confuse pre-fee gross margin with realized contribution margin.

Calculating blended gross margin across a multi-SKU product mix

Real businesses rarely sell a single SKU at a single margin. Most profitable merchants deliberately combine lower-margin traffic drivers (which attract repeat buyers), high-volume core staples, and high-margin accessories or add-ons. Never take a simple arithmetic average of individual SKU margins—always weight by actual revenue and COGS dollars:

Blended Portfolio Gross Margin (%) = [(Total Portfolio Revenue - Total Portfolio COGS) / Total Portfolio Revenue] x 100

See how a specialty coffee and retail shop's four product categories combine across a single month:

Product Category Monthly Units Unit Cost Selling Price Category Revenue Category COGS Gross Profit SKU Margin
250g Retail Coffee Beans (Traffic Driver) 300 $10.50 $14.00 $4,200 $3,150 $1,050 25.00%
Espresso & Milk Drinks (Core Volume) 2,500 $1.10 $4.40 $11,000 $2,750 $8,250 75.00%
Fresh Pastries & Sandwiches (Add-On) 900 $2.45 $5.50 $4,950 $2,205 $2,745 55.45%
Branded Insulated Tumbler (Merchandise) 100 $7.20 $24.00 $2,400 $720 $1,680 70.00%
Total / Blended Portfolio 3,800 — — $22,550 $8,825 $13,725 60.86%

Notice two practical insights from this table: first, taking an unweighted average of the four SKU margins (25.00% + 75.00% + 55.45% + 70.00%) / 4 gives 56.36%, which misses the true weighted blended margin of 60.86% ($13,725 / $22,550) by 4.5 percentage points because high-margin espresso drinks account for nearly half of total sales. Second, even though retail coffee beans carry only a 25.00% margin, discontinuing them would forfeit $1,050 in monthly gross profit and shrink foot traffic for 75%-margin espresso orders.

Common pricing and profit margin errors to avoid

  • Multiplying cost by (1 + target margin): Adding 40% to a $60.00 cost produces $84.00 (a 28.57% margin), not $100.00 (a 40.00% margin). Always divide cost by (1 - target margin) when pricing toward a margin target.
  • Pricing off historical purchase cost during supplier inflation: In inflationary or depreciating-currency markets, if your last shipment cost $50.00 per unit to land but your supplier's replacement pro-forma invoice is now $58.00, pricing off historical $50.00 cost leaves you short of working capital to restock the exact same shelf quantity. Price commercial catalogs against replacement landed cost while reporting tax books under your accountant's FIFO or weighted-average inventory method.
  • Treating gross margin as take-home net profit: A 45% gross margin product line can still lose money at the company level if customer acquisition cost (CAC), rent, or administrative payroll exceeds 45% of revenue. Pair unit gross margin checks with a monthly operating budget and our ROI Calculator for campaign spend.
  • Stacking promotional coupons on top of wholesale or bundle discounts: Allowing a 15% newsletter welcome code to stack on top of a 15% multi-buy bundle turns a planned 15% discount into a 27.75% combined markdown, frequently pushing sub-35%-margin SKUs into negative contribution territory.
  • Ignoring currency conversion spreads on imported inputs: When supplier invoices are denominated in USD or EUR and customer sales are collected in local currency, use the actual bank or payment-corridor settlement rate (often 1.5% to 3.5% above mid-market spot) when converting supplier cost, rather than headline interbank rates.

Where this calculator stops and financial disclaimer

This tool models deterministic unit-level gross profitability from the single cost price, selling price, and optional monthly unit volume you supply. It does not model price elasticity of demand (whether raising your selling price by 10% in the sensitivity table would cause monthly unit volume to drop), inventory holding costs, working-capital credit terms (such as paying suppliers at 30 days while corporate clients pay invoices at 60 or 90 days), multi-tier volume step-discounts, or statutory inventory valuation adjustments (FIFO, LIFO, or weighted-average cost under IAS 2 / ASC 330).

Important Financial & Accounting Disclaimer: All figures produced by the AfriWidget Profit Margin Calculator—including gross profit per unit, gross margin percentage, markup rate, cost ratio, monthly and annual volume projections, sector benchmark indicators, and sensitivity rows—are mathematical estimates based solely on user-entered assumptions. They do not account for fixed operating overhead, corporate income taxes, VAT/GST registration obligations, customs tariff reclassifications, payment chargebacks, or market demand changes.

This calculator and guide are provided strictly for general educational and commercial planning purposes and do not constitute professional accounting, tax, audit, legal, or financial advice. Always verify supplier invoices, freight bills, tax rules, and cost allocations against your official accounting records, and consult a qualified Chartered Accountant, Certified Public Accountant (CPA), tax practitioner, or licensed financial advisor before making material pricing, tax-filing, or capital-commitment decisions.

Sources and accounting references

  1. Financial Accounting Standards Board (FASB). ASC 606 Revenue from Contracts with Customers & ASC 330 Inventory. fasb.org
  2. IFRS Foundation. IAS 2 Inventories & IFRS 15 Revenue from Contracts with Customers. ifrs.org
  3. U.S. Small Business Administration (SBA). Manage Your Finances & Price Your Product Guidance. sba.gov
  4. Organisation for Economic Co-operation and Development (OECD). SME and Entrepreneurship Financing Publications. oecd.org
  5. HM Revenue and Customs (HMRC). VAT Margin Schemes, Input Tax Recovery, and Business Accounting Guidance. gov.uk/hmrc
  6. Internal Revenue Service (IRS). Publication 334, Tax Guide for Small Business (Cost of Goods Sold, Chapter 6). irs.gov/publications/p334
  7. South African Revenue Service (SARS). VAT 404 Guide for Vendors — Tax-Inclusive vs. Tax-Exclusive Pricing Rules. sars.gov.za

Frequently asked questions

What is the difference between gross profit margin and markup?

Gross profit margin expresses gross profit as a percentage of the net selling price, whereas markup expresses that exact same dollar profit as a percentage of the direct unit cost. Because selling price exceeds cost on every profitable sale, margin is always a smaller percentage than markup. For an item costing $60.00 that sells for $100.00, gross profit is $40.00: gross margin is 40.00% ($40.00 divided by $100.00), while markup is 66.67% ($40.00 divided by $60.00). Applying a 40% markup instead of a 40% margin prices the item at $84.00 and yields only a 28.57% margin.

What is a good profit margin for a small business?

A healthy profit margin depends on industry cost structure and whether you are measuring gross margin or net profit margin. Software and SaaS companies commonly achieve 70% to 90% gross margins because serving an additional user costs very little, while professional services typically see 50% to 70%, general retail and e-commerce 35% to 55%, manufacturing 25% to 40%, and restaurants or grocery stores 15% to 30% due to spoilage and direct kitchen labor. Across most brick-and-mortar and e-commerce sectors, an overall net profit margin of 10% after all operating overhead, interest, and taxes is considered solid, and 15% to 20% is strong.

How do I calculate selling price from cost and a target gross margin?

Divide your landed unit cost by (1 minus the target gross margin expressed as a decimal). If a product costs $50.00 and your target gross margin is 40% (0.40), compute $50.00 divided by (1 - 0.40) = $50.00 / 0.60 = $83.33. To achieve a 50% margin on that same $50.00 cost, compute $50.00 / 0.50 = $100.00. Never multiply cost by (1 + target margin), as that applies a markup rather than a true margin and leaves your selling price below target.

How do I convert markup percentage to gross margin percentage?

To convert markup into gross margin, divide the markup decimal by (1 + markup decimal) and multiply by 100. For example, a 50% markup (0.50) converts to 0.50 / 1.50 = 33.33% gross margin, and a 100% keystone markup (1.00) converts to 1.00 / 2.00 = 50.00% gross margin. To convert gross margin into markup, divide the margin decimal by (1 - margin decimal) and multiply by 100: a 40% margin (0.40) equals 0.40 / 0.60 = 66.67% markup.

What is the difference between gross margin, contribution margin, and net profit margin?

Gross margin subtracts only direct Cost of Goods Sold (COGS)—such as wholesale purchase price, raw materials, inbound freight, and import duty—from net revenue. Contribution margin goes one step further by subtracting variable selling expenses tied to each order, including outbound shipping subsidies, pick-and-pack fees, payment gateway charges, and sales commissions, showing how much cash each unit contributes toward fixed overhead. Net profit margin subtracts every remaining business expense—fixed rent, administrative payroll, marketing, software, loan interest, and corporate taxes—revealing what percentage of revenue remains as bottom-line profit.

How much extra sales volume do I need to break even on a 10% or 20% discount?

Because a discount comes directly out of gross profit per unit while unit cost stays unchanged, required volume rises much faster than the discount percentage. Use the formula Extra Volume % = [Discount % / (Base Gross Margin % - Discount %)] x 100. On a product with a 40% gross margin, a 10% price cut reduces unit margin to 30% profit dollars on original price and requires +33.3% more unit sales just to earn the same total gross profit; a 20% discount cuts unit profit in half and requires +100.0% more units (double your sales volume) to break even.

Should VAT or sales tax be included in the selling price when calculating margin?

No. Value-Added Tax (VAT), GST, and retail sales tax collected from customers on behalf of a tax authority are pass-through liabilities, not business revenue. Always enter your net tax-exclusive selling price and your net recoverable-tax-exclusive cost when registered for VAT. For instance, if a shelf price is $116.00 inclusive of 16% VAT, divide $116.00 by 1.16 to get the true net revenue of $100.00 before calculating gross profit and margin. Only unregistered businesses that cannot reclaim input VAT on purchases should include non-recoverable input tax inside their unit cost.

What costs belong in Cost of Goods Sold (COGS) versus operating expenses?

COGS includes every direct expense required to buy, manufacture, or bring one sellable unit into inventory ready for sale: supplier ex-works price, raw materials, primary product packaging, inbound ocean or air freight, transit insurance, customs duties, port clearing, direct assembly labor, and normal production spoilage. Exclude fixed office or shop rent, administrative salaries, paid advertising, accounting fees, general SaaS subscriptions, loan interest, and owner drawings—those sit below the gross profit line as operating and financing expenses.

How do I calculate blended profit margin across multiple products?

Never average the margin percentages of individual SKUs directly, because high-volume items carry far more weight than slow-moving items. Instead, multiply each product's unit selling price by units sold to get total portfolio revenue, multiply each product's unit cost by units sold to get total portfolio COGS, and compute Blended Gross Margin % = [(Total Portfolio Revenue - Total Portfolio COGS) / Total Portfolio Revenue] x 100.

Does this profit margin calculator store my product costs or pricing data?

No. All margin, markup, cost ratio, volume projection, and price sensitivity calculations run locally inside your browser tab using client-side JavaScript, and nothing is saved on any server. Only if you explicitly click the optional AI insight button is an anonymous numeric summary of cost, selling price, margin, markup, cost ratio, and unit volume sent once to generate commentary—supplier names, SKUs, and customer records are never requested or collected.

Explore more finance tools

Alongside the profit margin calculator, explore free tools for break-even volume, payment gateway fees, ROI, loan amortization, and compound growth—all running privately in your browser.

See all finance tools