By Herzel MishelFounder, AgentisLast reviewed
Most ecommerce dashboards show revenue and aggregate margin but rarely surface gross profit per order, the single most important unit-economics metric. Two stores at the same revenue with the same blended margin can have wildly different per-order profit distributions: one with most orders profitable and a long tail of losers, another with thin margins everywhere. This calculator computes gross profit per order from the inputs that actually drive it: line item revenue, per-SKU COGS, applied discount, fulfillment cost, and payment processing fees. It returns gross profit, gross margin percentage, and a contribution-margin view that separates the order-level cost stack from operating expenses. Use it for rapid scenario analysis when evaluating new SKU launches, promotional offers, or freight zone expansion.
Sum of all line items at retail price.
Net Revenue (Post-Discount)
$63.00
Payment Processing Cost
$2.13
Total Order-Level Cost
$36.63
Gross Profit Per Order
$26.37
Gross Margin %
41.9%
Contribution Margin
$26.37
A healthy gross profit per order for mid-market DTC ecommerce is typically $15–$40 per order, depending on category and AOV. Below $10 per order at typical AOVs ($40–$80), the business cannot absorb operating expenses, marketing, or returns without constant fundraising. Below $5 per order, the business is structurally negative on a fully-loaded basis. The most common pattern that compresses gross profit is discount stacking: a $50 order with a 15% promo code, $7 fulfillment, and Stripe fees frequently lands at $4–$8 gross profit, which is a thin enough margin that any return rate above 10% pushes net contribution negative. The calculator helps identify which order patterns are structurally underwater so you can either reprice, restrict discount stacking on those SKUs, or introduce minimum order thresholds for promotional eligibility.
The calculator computes gross profit per order using a contribution-margin framework that includes order-level variable costs but excludes operating expenses (rent, salaries, software). Net revenue is line-item revenue minus discount applied. Payment processing cost is computed on net revenue (the post-discount amount actually charged) using a percentage rate plus a per-order fixed fee, which matches Stripe's standard pricing model. Total order-level cost is COGS plus fulfillment plus payment processing. Gross profit per order is net revenue minus total order-level cost. Contribution margin is the same as gross profit at the per-order level (operating expenses are not allocated). Gross margin percentage is gross profit divided by net revenue. The methodology is intentionally per-order rather than per-line-item: real ecommerce order economics are dominated by per-order fixed costs (fulfillment, payment fixed fee) that do not scale linearly with line item count, so per-order analysis is the right unit for most decisions.
A static gross profit per order calculation is useful for scenario modeling, but it cannot enforce margin policy on actual checkout traffic. The same inputs vary order-by-order in real commerce: COGS shifts as suppliers raise prices, discount stacks vary by customer segment, fulfillment cost varies by freight zone, FX rates affect international orders. Agentis takes the same per-order gross profit math and runs it at every Shopify Plus checkout in real time, using live data from NetSuite (COGS), your duty engine (landed cost on imports), and Stripe (current rates). Orders below your configured gross profit floor are blocked or adjusted before confirmation. The calculator answers what does this order look like; Agentis answers prevent below-floor orders from confirming.
The calculator deliberately excludes returns to compute gross profit on the assumption the order is delivered and kept. For a returns-aware view, multiply the gross profit by (1 − return rate) and subtract the return processing cost weighted by the return rate. For most categories with single-digit return rates, this adjustment is small; for apparel and other high-return categories, it materially changes the picture and should be applied at the cohort level, not per-order. The reason for excluding returns is that the calculator is a per-order tool, and a return is an event that happens to a fraction of orders rather than to every order. Applying a return rate to a single order would mix a probability into a deterministic cost stack. If you want a rough per-order view anyway, reduce the gross profit output by your return rate before comparing it to your floor. For high-return categories, use the cohort-level adjustment described above so the return cost is weighted correctly across your store's order mix.
The contribution margin calculator computes per-unit contribution at a price-cost level. The gross profit per order calculator includes the order-level fixed costs (fulfillment, payment fixed fee) that do not scale with line item count. For multi-line-item orders, gross profit per order is more accurate because it correctly amortizes fixed costs across the cart. In this calculator, net revenue is line-item revenue minus the discount applied, payment processing cost is computed on net revenue using a percentage rate plus a per-order fixed fee, and total order-level cost is COGS plus fulfillment plus payment processing. Gross profit per order is net revenue minus that total, and contribution margin at the per-order level equals gross profit because operating expenses are not allocated. A per-unit view cannot show that a one-item cart and a three-item cart pay the same fulfillment and fixed payment fee. Use the contribution margin calculator when deciding on a single SKU's price and cost, and use this one when evaluating how real carts perform in your store.
Stripe and most processors charge fees on the actual amount charged to the customer's card, which is the post-discount net revenue. The fee is not refunded when discounts are applied, only when the order itself is refunded. This is a small but real margin drag: a 15% discount does not save you 15% on payment fees because the fees are recomputed on the smaller amount. In the calculator, payment processing cost is the payment fee percentage applied to net revenue plus the per-order fixed fee, which matches the standard processor model of a percentage rate plus a fixed amount. Computing fees on gross revenue would overstate the processing cost on discounted orders. The fixed fee is the part that does not shrink with the discount, and on a heavily discounted order it becomes a larger share of net revenue. Enter your own processor rate and fixed fee to see the exact payment cost on a typical order in your store.
Yes for the per-order economics of an individual subscription charge, no for the full subscription lifetime view. For subscription LTV including churn and renewal economics, use the subscription margin calculator instead. This calculator answers what is the gross profit on this single charge. For a single subscription charge, enter the charge amount as line-item revenue, the product cost for that shipment as COGS, any subscriber discount as the discount applied, and the pick, pack, and ship cost for that box as fulfillment cost. The payment fee percentage and fixed fee apply to each recurring charge the same way they apply to a one-time order. The output tells you whether one renewal clears your gross profit floor. What it cannot tell you is how churn or rising COGS change that figure over the life of the subscriber, which is why the subscription margin calculator exists. If your recurring orders carry a locked-in subscriber discount, run this calculator on that discounted charge to check whether each renewal is profitable in your store.
Calculator
Free net margin calculator for ecommerce. Enter revenue, COGS, and expenses to get net profit margin percentage and gross margin, with 2026 benchmarks.
Calculator
See how 10%, 20%, 30% off destroys gross margin on Shopify orders. Free calculator factors COGS, shipping, returns. 2026 ecommerce profit tool.
Calculator
Calculate your all-in true product cost: landed cost, fulfillment, returns, and payment fees. See how much your naive COGS margin is overstating reality.
Profit Governance
The minimum gross margin required before an order is confirmed at checkout. Orders falling below the profit floor are blocked, modified, or redirected.
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.
Margin Analysis
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.
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.