Most ecommerce founders know their revenue number by heart — but far fewer can tell you their true profit margin without pulling up a spreadsheet. This profit margin calculator takes your revenue, cost of goods sold, and operating expenses and returns both your gross margin and net margin in real time. It is designed for mid-market Shopify Plus merchants and DTC brands who need a quick sanity check on whether a product line, a promo, or a channel is actually making money. Unlike generic calculators that stop at gross margin, this tool also reveals your net profit so you can see how much of every dollar you keep after marketing, fulfillment, and overhead. Enter your numbers below to see where your profit really stands — and how far you are from the benchmarks for your category.
Total revenue for the period (monthly, quarterly, or annual).
Product cost, landed freight, and manufacturing — not marketing.
Marketing, salaries, platform fees, fulfillment, rent, software.
Gross Profit
$600,000
Gross Margin
60.00%
Net Profit
$250,000
Net Margin
25.00%
Gross profit is calculated as Revenue minus Cost of Goods Sold (COGS). COGS should include the direct cost to produce and land each unit: raw materials, manufacturing, inbound freight, and import duties — but not marketing, platform fees, or fulfillment to the end customer. Gross margin is expressed as a percentage: (Gross Profit divided by Revenue) multiplied by 100. Net profit is calculated as Gross Profit minus Operating Expenses. Operating expenses include everything it takes to run the business but that is not directly tied to producing the product: paid marketing, salaries, Shopify Plus fees, fulfillment costs to the customer, software, rent, and professional services. Net margin is (Net Profit divided by Revenue) multiplied by 100. This calculator uses a simple single-period model, so seasonality and amortized costs like equipment are not separated out. For a more detailed view, use the contribution margin calculator (which isolates variable costs per unit) or the break-even calculator (which factors in fixed costs).
A healthy ecommerce gross margin typically sits between 50 and 70 percent, depending on category. Health and supplements brands can reach 60 to 70 percent, beauty brands 60 to 80 percent, fashion 45 to 65 percent, and consumer electronics a razor-thin 15 to 30 percent. If your gross margin is below the low end of your category, you are likely underpricing, over-discounting, or absorbing costs that should be passed through to the customer. Net margin is where most DTC brands get surprised: a 60 percent gross margin can collapse to a 3 percent net margin once marketing, fulfillment, and platform fees stack on top. Mid-market DTC brands typically target 8 to 15 percent net margin as a sustainable floor. Anything below 5 percent net margin means the business is one bad quarter away from losing money, and any shock to CAC, shipping, or COGS will push it into the red.
This calculator gives you a clean snapshot of profit, but a snapshot is not enforcement. The real problem mid-market Shopify Plus brands face is that margin is calculated after the fact — in a monthly P&L review or a quarterly board deck — by which point thousands of orders have already shipped at a loss. Marketing runs a discount code, fulfillment ships to a remote zip with higher freight, FX moves against you, and the sub-margin orders only surface in the next reporting cycle. Agentis closes that loop. It evaluates every Shopify Plus checkout order against your live COGS, freight zones, and profit floor in under 10 milliseconds, and blocks orders that would ship below your threshold before they become a reporting problem. The calculator tells you where you stand; Agentis makes sure you stay there.
Gross margin targets vary by category — 60 to 70 percent for supplements, 60 to 80 percent for beauty, 45 to 65 percent for fashion, and 15 to 30 percent for electronics. Net margin is the better health indicator: 8 to 15 percent is a sustainable range for mid-market DTC brands. Below 5 percent net margin, a single cost shock can push the business into losses.
Gross margin only deducts the direct cost of producing the product (COGS). Net margin also deducts operating expenses like marketing, fulfillment, payroll, and software. A brand can have a strong 65 percent gross margin and still be unprofitable if marketing and fulfillment costs push net margin below zero. Net margin is the honest number.
Inbound freight (moving product from your supplier to your warehouse) belongs in COGS. Outbound fulfillment (shipping to the end customer) is technically a selling expense and usually sits in operating expenses, though some brands bundle it into a fully loaded unit cost for internal tracking. Be consistent — do not switch between methods mid-period.
Because paid marketing and fulfillment are eating it. Most DTC brands have a healthy gross margin but lose 40 to 60 percent of it to Meta and Google ads, and another 10 to 15 percent to Shopify fees and 3PL fulfillment. If your gross-to-net gap is unusually wide, start with CAC as a percentage of revenue — that is almost always where the leak is.
Agentis ingests live COGS from NetSuite or your ERP, adds dynamic freight and fulfillment costs per order, and checks every Shopify Plus checkout against a profit floor you define. Orders that would ship below your floor can be blocked, re-quoted, or flagged depending on your rules — so the margin number this calculator shows becomes something you enforce, not just observe.
Calculator
Free break-even calculator. Calculate break-even units and break-even revenue from fixed costs, unit price, and variable cost — with contribution margin analysis.
Calculator
See exactly how much margin a discount destroys. A 20% discount can erase 50%+ of your gross margin — this calculator shows you the multiplier effect in real time.
Margin Analysis
The percentage of revenue remaining after subtracting the cost of goods sold — a foundational profitability metric that excludes operating expenses, taxes, and interest.
Margin Analysis
The revenue remaining after deducting all variable costs associated with fulfilling an order — including COGS, shipping, payment processing fees, and pick-and-pack labor.
Cost Management
The gradual divergence between the COGS data used in pricing/checkout systems and actual supplier costs, leading to margin miscalculation.
Free Audit — No Commitment
Agentis blocks Shopify Plus checkout orders that fall below your profit floor in under 10ms. Start a free 7-day audit and see your order-level profitability.