Practical guide
How to Calculate Profit Margin for Your Online Store
Build a per-order contribution model from your own current fee schedule instead of relying on a generic marketplace percentage.
By CalcBusiness editorial team · Reviewed 2026-07-15 · About our team
Formula and assumptions
How it works
- Record the selling price and every cost caused by one order.
- Separate percentage fees from fixed per-order costs.
- Calculate contribution profit, then subtract business overhead separately before calling the result net profit.
Start with the costs triggered by one order
Gross margin based only on selling price minus product cost is useful but incomplete for channel decisions. A store order may also create percentage marketplace fees, payment processing, a fixed transaction charge, outbound shipping, packaging, advertising, returns, and fulfillment costs.
Keep period overhead separate at first. Calling the per-order result net profit can hide payroll, software, insurance, storage, accounting, and other expenses that are not assigned to the order. Use the label contribution profit until those costs are included consistently.
Build an auditable fee worksheet
| Input | Evidence to use | Model treatment |
|---|---|---|
| Product and packaging | Supplier invoice and landed-cost record | Fixed amount per unit |
| Marketplace and payment fees | Current official schedule plus a recent comparable settlement | Separate percentage and fixed portions |
| Shipping and fulfillment | Carrier invoice or fulfillment statement | Average by size, zone, and service used |
| Advertising | Campaign spend and attributed completed orders | Cost per acquired order and blended scenario |
| Returns allowance | Your return rate and actual loss per return | Expected cost per completed order |
Worked example with explicit assumptions
Assume a $40 selling price, $15 product cost, $5 shipping, $1 packaging, $4 advertising allocation, and $2 expected return cost. For illustration only, assume combined percentage fees of 11% plus a $0.30 fixed fee. Replace both fee assumptions with current values from your account.
- Percentage fees: $40 × 11% = $4.40
- Other per-order costs: $15 + $5 + $1 + $4 + $2 + $0.30 = $27.30
- Contribution profit: $40 − $4.40 − $27.30 = $8.30
- Contribution margin: $8.30 ÷ $40 = 20.75%
The result is not net margin because monthly overhead and taxes are not included. Its value is transparency: every assumption can be replaced and traced to evidence.
Do not confuse buyer total, seller revenue, and fee base
An order can show three different totals. The buyer may pay item price, shipping, and tax. The marketplace may remit some tax directly, so that amount is not seller revenue. The provider may still include tax, buyer-paid shipping, handling, or other charges in a percentage-fee base. Read the provider's definition and the settlement rather than assuming all three totals are equal.
Build a reconciliation with separate rows for buyer total, marketplace-remitted amounts, seller revenue, percentage-fee base, variable fee, fixed fee, shipping-label cost, advertising, refund adjustments, and payout. The payout is a cash movement, not automatically profit: it may include or exclude reserves, prior adjustments, or several orders. Test one transaction first, then aggregate only fields that have the same meaning.
Preserve the transaction date and currency with that reconciliation so later fee changes or conversion effects can be identified instead of silently averaged together.
Solve for a target price
When percentage fees apply to price, simply adding a target percentage to cost produces the wrong result. If fixed per-order costs are C, percentage fees are f, and target contribution margin is m, use:
Using $27.30 fixed per-order costs, 11% percentage fees, and a 20% target contribution margin gives $27.30 ÷ (1 − 0.11 − 0.20) = $39.57. The denominator must remain above zero; otherwise the assumptions cannot produce that target at any positive price.
Test the assumptions that can change the decision
Run separate scenarios for a higher shipping zone, a discounted selling price, a return spike, and paid versus non-paid acquisition. Recalculate after a platform, processor, carrier, supplier, or advertising change. A hard-coded fee table becomes stale; a model tied to current statements remains useful.
Use the Resell Profit Calculator to enter custom marketplace and payment fees, the Product Pricing Calculator to solve a price, and the Profit Margin Calculator for a simpler cost-and-price check.
Frequently asked questions
What marketplace fee rate should I enter?
Use the effective rate from a recent comparable order or the current fee schedule for your exact category, plan, country, and seller status. Do not assume a generic rate is current.
Is contribution margin the same as net margin?
No. Contribution margin covers the costs modeled per order. Net margin also reflects period expenses such as payroll, subscriptions, rent, professional fees, taxes, and other overhead.
How should I include returns?
Estimate expected return cost per completed order from your own history, including lost product value, reverse shipping, handling, and non-refunded fees where applicable. Keep the assumption visible and update it.
Do advertising costs belong in the order model?
Include attributable acquisition cost when evaluating a paid channel. Also review blended advertising spend across all orders so organic and paid sales are not confused.
Can this method set the final price automatically?
It can solve a planning price from stated costs and a target contribution margin. Demand, tax, competition, positioning, capacity, and legal pricing rules still require separate judgment.
Limitations: Platform fees, payment rates, taxes, return treatment, and shipping charges vary by account, category, country, plan, and date. Verify current account statements and official fee pages before pricing.