Free Calculator

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 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.

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 in real time?

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. The check runs in under 10 milliseconds, inside the checkout flow 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 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. Use the calculator to establish where your margin stands today, then treat that number as the floor Agentis holds every order to.

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

Related Concepts

Related Benchmarks

Browse all Ecommerce Benchmarks 2026 →

Free Audit, No Commitment

Stop Just Calculating Margin. Enforce It.

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.