Quick answer: For a practical order-level estimate, subtract product cost, shipping or fulfillment, payment/platform fees, advertising cost per sale and other variable order costs from the selling price. The amount left is your modeled profit per order.
The ecommerce profit-per-order formula
This formula is useful for product and advertising decisions because it forces the costs attached to generating and fulfilling an order into the same calculation. It is a unit-economics view, not a complete accounting profit-and-loss statement.
Worked example: a $49.95 order
Suppose you sell a product for $49.95. The product costs $10, shipping costs $4.89, payment/platform fees are 3% of revenue, and acquiring the sale through advertising costs $15.
| Item | Amount |
|---|---|
| Selling price | $49.95 |
| Product cost | − $10.00 |
| Shipping | − $4.89 |
| 3% fee | − $1.50 |
| Ad cost per sale | − $15.00 |
| Modeled profit per order | $18.56 |
The exact calculation is $49.95 − $10 − $4.89 − $1.4985 − $15 = $18.5615, or about $18.56 per order.
How to calculate ecommerce profit margin
Once you know profit per order, divide it by selling price and multiply by 100.
$18.5615 ÷ $49.95 × 100 ≈ 37.16%
In this example, the modeled order-level profit margin is about 37.16%. That percentage makes products with different selling prices easier to compare.
Calculate your own order
Enter your selling price and real costs into Keeplytics to calculate profit per order, profit margin, break-even ROAS and maximum CPA together.
Use the free profit calculator →Gross profit is not the same as profit after ads
A common mistake is to subtract only product cost from revenue and call the result profit. That can make a product look much healthier than it really is. Gross profit is useful, but ecommerce decisions often also need shipping, transaction fees, fulfillment and customer acquisition costs.
For example, $49.95 minus a $10 product cost leaves $39.95 before the other costs in our example. After shipping, fees and advertising are included, the modeled amount left falls to $18.56. Both numbers describe something useful, but they answer different questions.
Contribution before ads helps you understand ROAS
Before advertising, our example has $33.56 left after product cost, shipping and the 3% fee. That is the maximum acquisition cost the simplified order could absorb before modeled profit reaches zero.
Break-even ROAS = Selling price ÷ Maximum break-even CPA
For this example, maximum break-even CPA is about $33.56 and break-even ROAS is about 1.49x. Paying $15 for the sale is therefore below the modeled break-even CPA.
Costs ecommerce sellers commonly forget
Your calculation is only as useful as the inputs. Depending on the business, relevant variable costs can include packaging, pick-and-pack or fulfillment charges, marketplace or payment fees, discounts, return/refund allowances and other costs that rise with orders.
Do not double-count a cost. If a supplier quote already combines product and shipping into one landed cost, either enter that combined amount once or split it accurately between fields.
Order profit vs. total business net profit
Keeplytics' calculator is designed primarily for product and order economics. A business can have profitable orders and still lose money overall after fixed expenses such as salaries, software subscriptions, rent, professional services, taxes or other overhead.
Use order-level profit to evaluate pricing and acquisition economics, then use proper bookkeeping or accounting to evaluate the profitability of the entire business.
How to improve ecommerce profit per order
The formula shows the levers directly: improve selling price or average order value where customers still see value, negotiate product or fulfillment costs, reduce avoidable fees, improve advertising efficiency, and reduce costly returns. The best lever depends on which cost is actually constraining your margin.
When changing price or ad spend, model the new numbers before scaling. A campaign can generate more revenue while producing less profit if acquisition costs rise faster than contribution.
Use profit, CPA and ROAS together
Profit per order tells you what remains. Maximum CPA tells you how much acquisition cost the order can absorb before reaching a chosen profit threshold. ROAS tells you how much attributed revenue advertising generates relative to spend. Used together, these metrics give a more complete picture than any one number by itself.
Ecommerce profit FAQ
What is the basic ecommerce profit formula?
For an order-level estimate, subtract product cost, shipping or fulfillment, fees, advertising cost per sale and other variable order costs from selling price.
Should advertising be included when calculating product profit?
If you are evaluating profit from an acquired order, including the acquisition cost helps show what remains after advertising. You may also calculate contribution before ads separately so you can see how much is available to fund customer acquisition.
How do I calculate profit margin?
Divide profit by revenue and multiply by 100. If an order produces $18.56 of modeled profit from $49.95 of revenue, its modeled profit margin is about 37.16%.
Is ROAS the same as profit?
No. ROAS compares attributed revenue with advertising spend. It does not by itself subtract product cost, shipping, fulfillment, fees or other business expenses.
Does this calculation equal accounting net profit?
No. It is a planning view of order economics. Total business net profit may also include fixed overhead, taxes, payroll, software, professional services and other expenses.
Keeplytics provides planning calculators and educational information, not accounting, tax or financial advice. Results depend on the costs and assumptions you enter.