
Ecommerce pricing starts with understanding what a product costs to sell and what customers are willing to pay. To calculate selling price from cost and margin after percentage-based fees, divide the per-unit cost by the share of revenue available to cover that cost. This guide explains the formula, a worked example, pricing strategies and the limitations of a margin-based price.
What Ecommerce Pricing Measures
A margin-based price is the amount a store needs to charge to retain a specified share of selling revenue after the cost and percentage fees included in its model. It is a starting point for pricing a product, not a forecast of sales demand. A store can use it to evaluate a new product launch, compare marketplaces or decide whether a planned promotion leaves enough contribution to cover overhead.
The Ecommerce Pricing Calculator uses landed cost per unit, target margin after fees and the percentage selling fee rate. Its result is a unit-level price requirement. It does not automatically calculate taxes, platform tariffs, returns, advertising or the effect of a price change on demand.
Selling Price Formula
Required selling price
Required Price = Landed Unit Cost / (1 - Target Margin - Variable Selling Fee Rate)Use decimal rates in the equation: 40% becomes 0.40 and 5% becomes 0.05. If C is entered cost, P is price, M is target margin and F is the fee rate, then P − C − FP = MP. Rearranging yields P(1 − M − F) = C. With a positive cost, the sum of margin and fee rates must be less than 100%.
How to calculate selling price from cost and margin without fees
When fees are zero, the formula simplifies to P = C / (1 − M). A product costing $31 with a 40% target margin needs $31 / 0.60 = $51.6667, or $51.67 to the nearest cent. Multiplying $31 by 1.40 would instead produce a 40% markup, not a 40% margin.
Cost-plus pricing formula versus target margin
Cost-based pricing begins with cost. The traditional cost-plus pricing formula is price = cost × (1 + markup rate). At $31 and a 40% markup, price is $43.40; before fees, margin is $12.40 / $43.40 = 28.57%. A 40% margin before fees requires a 66.67% markup on cost. To calculate markup and margin consistently, use the same definition of profit for both ratios. This tool is margin-based rather than a markup-input cost-plus calculator. If you have a pre-fee markup target, convert it to margin as markup / (1 + markup) before using the zero-fee model.
Inputs and Measurement Boundaries
Landed product cost per unit
Start with supplier or manufacturing cost, allocated inbound freight, customs duties and relevant handling costs. Divide shared shipment costs by a defensible allocation across sellable units. Use the same currency for cost and price. Landed cost usually describes getting inventory to its intended location; outbound delivery, acquisition spending and returns are not ordinarily part of that definition. If you want an after-cost contribution target that covers these costs, explicitly add reasonable per-unit allocations to the cost input and record the broader scope.
Percentage-based selling fees
Use rates applied to the same selling-price base, such as a percentage payment fee and commission on product revenue. Fixed transaction fees can be allocated into the cost input based on expected units per order. Do not enter them as percentages unless the conversion reflects the price being modeled. Tiered commissions, fees assessed on shipping or tax, minimum fees and multi-currency conversion need their own calculation. Check actual merchant contracts instead of assuming a platform-wide rate.
Target margin after fees
Set a percentage of selling revenue that remains after the entered unit cost and selling fees. This is an after-fee unit contribution margin under the chosen cost scope. Accounting gross margin is generally revenue less cost of goods sold divided by revenue; selling fees and other variable expenses may be classified separately. Net profit additionally reflects overhead and other expenses. Do not treat these three terms as interchangeable.
Worked Ecommerce Selling Price Calculation
Suppose a store has $31 landed unit cost, wants a 40% margin after fees and pays 5% of selling price in fees. These are the calculator defaults, not market benchmarks.
- Convert the target and fee rates to decimals: 0.40 and 0.05.
- Calculate the cost share: 1 − 0.40 − 0.05 = 0.55.
- Determine selling price per unit: $31 / 0.55 = $56.363636…
- Calculate fees: $56.363636… × 0.05 = $2.81818…
- Calculate contribution: $56.363636… − $31 − $2.81818… = $22.54545…
- Check margin: $22.54545… / $56.363636… × 100 = 40%.
The displayed outputs are $56.36 required price, $22.55 contribution, $2.82 fees and 40.00% margin. Results are independently rounded; calculations use full precision, so displayed components may differ by a cent when added.
Round the price without missing the target
At a posted price of $56.36, the model margin is slightly below 40%. If the minimum is strict, round up to $56.37. For a proposed retail price of $59.99, fees are approximately $3.00 and contribution is approximately $25.99, yielding about 43.32% after-fee margin. Recheck actual processor rounding and any additional cost before publishing a price.
How to Interpret the Output
The required selling price is the cost-based floor for the selected margin, not the lowest price at which the business breaks even. Unit contribution funds expenses not yet included and eventually profit. A 40% modeled margin cannot establish whether a product is profitable at the business level without knowing overhead, returns and sales volume.
When comparing products, keep the same scope for fees and costs. A lower price may produce a higher total contribution if it increases demand enough; a higher price may reduce conversion. Compare both per-unit contribution and realistic unit volume before making the decision.
Scenario Analysis and Planning
Hold the $31 cost and 40% target constant while changing the percentage fee rate. The calculations illustrate price sensitivity; each displayed price is rounded to two decimals.
- 0% fees: $31 / 0.60 = $51.67.
- 5% fees: $31 / 0.55 = $56.36.
- 10% fees: $31 / 0.50 = $62.00.
- 15% fees: $31 / 0.45 = $68.89.
If the same product has $35 entered cost instead of $31 and fees remain 5%, required price rises to $63.64. A fee increase and a cost increase can both raise the price floor. If the market will not bear that price, investigate sourcing, packaging, fee structure or a lower margin target rather than assuming demand will adapt.
How to set pricing on marketplaces
Compare channel-specific costs and fee bases. A direct storefront and a marketplace may have different commissions, payment charges, fulfillment arrangements and returns. Run the calculator for each channel using its own entered cost and fee rate. If fees are assessed on different bases, build a separate fee model rather than simply adding all percentages. Avoid confusing the marketplace payout with selling revenue.
Ecommerce Pricing Strategy and Pricing Models
To price products for profit, combine a defensible cost-based floor with evidence about customer value and competing offers. Three useful approaches are cost-plus, competitive and value-based pricing. Cost-plus applies a markup to cost; competitive pricing evaluates comparable offers; value-based pricing starts from what the product is worth to its intended customer. A margin-based calculator complements these strategies by testing whether a proposed price covers modeled costs.
How to test a pricing strategy
Choose a small set of plausible prices above your minimum floor. Compare conversion, average order value, contribution per order and total contribution over a consistent period. Avoid testing a price change at the same time as a major promotion or traffic-source change unless you can separate the effects. Monitor refund rates and customer feedback as well as revenue. Do not assume a higher price automatically yields higher total profit.
For discounts, use the actual net product price as revenue and reassess the fees on their correct base. For example, a 10% discount on $59.99 gives $53.991 before currency rounding; with $31 cost and 5% fees, modeled margin drops to about 37.58%. This is below the original 40% target even though the unit remains contribution-positive.
Common Product Pricing Mistakes
- Applying a 40% markup when the goal is a 40% margin.
- Adding the fee percentage to cost instead of modeling it on selling revenue.
- Counting fixed payment charges twice or treating tax collected for authorities as revenue.
- Ignoring shipping subsidies, returns or other costs required by the chosen contribution scope.
- Rounding down a price that must meet a strict margin target.
- Using a margin-plus-fee assumption at or above 100%, which has no feasible finite solution for a positive cost.
Practical Pricing Workflow
- Calculate actual per-unit landed cost and identify any additional allocated unit costs.
- Document percentage fees, fixed charges and the base on which they are charged.
- Choose an after-fee target that supports overhead and expected sales volume.
- Calculate selling price and round to a feasible currency increment.
- Compare against customer demand, competing offers and planned discounts.
- Measure realized contribution with actual sales, costs and fees; revise assumptions when they change.
For a spreadsheet check, if A2 contains unit cost, B2 contains the target margin as a percentage and C2 contains the fee as a percentage, use =A2/(1-B2-C2) only when both rates are nonnegative and their sum is below 100%. Apply a separate upward rounding rule if the minimum must be maintained.
Related Ecommerce Metrics
Pricing solves for the required selling price from assumptions. The Ecommerce Profit Margin Guide evaluates actual profitability from revenue and costs. Contribution Margin per Order helps reconcile variable expenses across a basket. Use the Ecommerce Break-Even Guide to model fixed costs and required sales volume, and the Discount Profit Impact Guide to evaluate promotions.
Frequently Asked Questions
Divide the entered cost by one minus the desired margin and selling fee rates, expressed as decimals. For a $31 cost, 40% margin and 5% fees, the result is $56.363636… before rounding.
No. With no fees, a 50% markup results in a 33.33% margin. A 50% margin requires a 100% markup before fees.
Yes, include percentage fees applied to selling revenue in the rate input. Allocate fixed charges into unit cost if appropriate. Model fees on tax, shipping or different bases separately.
Start with all relevant costs, select a realistic contribution target, compare the calculated price with market demand and check the sales volume required to cover overhead. No margin percentage guarantees profit.
The calculator displays the exact model result rounded to two decimals. Round up to the next currency increment if your target is a strict minimum; the default example needs $56.37 rather than $56.36.
No finite positive price can cover a positive cost under that model. Reduce the combined rates or reconsider the cost assumptions.
It has no separate tax input. Use a consistent revenue basis and distinguish tax collected for authorities from business revenue. Reconcile tax-inclusive prices separately under the applicable rules.
You can, but the contribution may differ because of different fee rates and costs. Calculate each channel's margin using its own terms and check actual payouts.
Editorial note: Examples illustrate planning arithmetic, not recommended pricing, market benchmarks or tax and accounting advice.