Profit Margin Calculator
By Herzel MishelFounder, AgentisLast reviewed
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 profit 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 works as a net profit margin calculator, revealing 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.
Inputs
Total revenue for the period (monthly, quarterly, or annual).
Product cost, landed freight, and manufacturing, not marketing.
Marketing, salaries, platform fees, fulfillment, rent, software.
Results
Gross Profit
$600,000
Gross Margin
60.00%
Net Profit
$250,000
Net Profit Margin
25.00%
What the Result Means
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 profit 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.
How It's Calculated
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).
The Gap This Calculator Reveals
This calculator gives you a clean snapshot of profit, but a snapshot is not a control. 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 computes the true net margin of every Shopify Plus order against your live COGS, freight, fees, and profit floor within 60 seconds of the order being placed, and flags or automatically holds orders below your threshold before they ship. The calculator tells you where you stand; Agentis helps you stay there.
Sources
Frequently Asked Questions
What is a good profit margin for ecommerce?
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. 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 the better health indicator: 8 to 15 percent is a sustainable range for mid-market DTC brands. Net margin is what remains after marketing, fulfillment, platform fees, and overhead are deducted from gross profit, so it reflects whether the business as a whole makes money, not just the product. Below 5 percent net margin, a single cost shock can push the business into losses. A shock to CAC, shipping, or COGS is enough to push a sub-5-percent business into the red. Enter your revenue, COGS, and operating expenses above and compare both outputs against the band for your category.
What is the difference between gross margin and net margin?
Gross margin only deducts the direct cost of producing the product (COGS). COGS covers raw materials, manufacturing, inbound freight, and import duties, but not marketing, platform fees, or fulfillment to the end customer. Net margin also deducts operating expenses like marketing, fulfillment, payroll, and software. Gross margin is gross profit divided by revenue, multiplied by 100; net margin applies the same formula to net profit, which is gross profit minus operating expenses. A brand can have a strong 65 percent gross margin and still be unprofitable if marketing and fulfillment costs push net margin below zero. Most DTC brands get surprised by the size of that gap once marketing, fulfillment, and platform fees stack on top. Net margin is the honest number. This calculator returns both figures from the same three inputs, so you can see the size of your own gap in one pass.
Should shipping be counted in COGS or operating expenses?
Inbound freight (moving product from your supplier to your warehouse) belongs in COGS. The distinction matters because inbound freight is part of the direct cost of getting a unit ready to sell, alongside raw materials, manufacturing, and import duties. 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. Outbound fulfillment scales with orders shipped rather than units produced, which is why it groups with marketing, salaries, platform fees, software, and rent in this calculator's operating expenses input. Be consistent; do not switch between methods mid-period. Switching methods changes gross margin without changing a single dollar of actual profit. Whichever convention you choose, apply it the same way in the COGS and operating expenses fields here as you do in your books, so the result matches what you report.
Why is my net margin so much lower than my gross margin?
Because paid marketing and fulfillment are eating it. Gross margin only deducts COGS, so it says nothing about what it costs to sell, ship, and support each order. Net margin deducts operating expenses as well: paid marketing, salaries, Shopify Plus fees, fulfillment to the customer, software, rent, and professional services. 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. That is how a 60 percent gross margin can collapse to a 3 percent net margin without any change in product cost. 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. Run your own numbers through the calculator and check the distance between the gross and net outputs before deciding which cost line to attack first.
How does Agentis use this margin data on live orders?
Agentis ingests live COGS from NetSuite (often via Celigo), adds freight, payment fees, and FX per order, and checks every Shopify Plus order against a profit floor you define. The check runs within 60 seconds of each order being placed, between order placed and order shipped, rather than in a monthly P&L review. That timing matters because margin is normally calculated after the fact, by which point thousands of orders have already shipped at a loss. A discount code, a remote-zip freight charge, or an FX move against you can each push individual orders below the blended margin this calculator reports. Orders below your floor are flagged with the leak and a recommended fix, or held before fulfillment under rules you approve, and logged in the Evidence Ledger. Use the calculator to establish where your margin stands today, then treat that number as the floor Agentis checks every order against.
Is this a net profit margin calculator?
Yes. Net profit margin = (revenue minus COGS minus operating expenses) divided by revenue, times 100 — and this tool returns it alongside gross margin from the same three inputs. The tool also returns gross profit and net profit in dollars, so you can see both the ratio and the absolute amount you keep. Operating expenses in this model include marketing, salaries, platform fees, fulfillment, rent, and software; COGS includes product cost, landed freight, and manufacturing, but not marketing. Unlike generic calculators that stop at gross margin, this one reveals how much of every dollar you keep after marketing, fulfillment, and overhead. For mid-market DTC brands, 8 to 15 percent net profit margin is the sustainable range; the result shows how far your numbers sit from that band. Enter a monthly, quarterly, or annual period, but keep all three inputs on the same period so the percentages are comparable.
More margin Calculators
Related Calculators
Calculator
Break-Even 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
Discount Impact Calculator
See how 10%, 20%, 30% off destroys gross margin on Shopify orders. Free calculator factors COGS, shipping, returns. 2026 ecommerce profit tool.
Related Concepts
Margin Analysis
Gross Margin
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
Net Profit Per Order (NPPO)
The actual dollar profit remaining on a single order after deducting all variable costs, fixed cost allocation, and marketing attribution -- the most granular unit of ecommerce profitability.
Margin Analysis
Contribution Margin
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
COGS Decay
The gradual divergence between the COGS data used in pricing/checkout systems and actual supplier costs, leading to margin miscalculation.
Related Benchmarks
Browse all Ecommerce Benchmarks 2026 →Free Audit, No Commitment
Stop Just Calculating Margin. Enforce It.
Agentis checks every Shopify Plus order's true net margin within 60 seconds and flags or holds the ones below your profit floor before they ship. Start a free 7-day audit and see your order-level profitability.