PRICING & MARGIN

Gross Margin Calculator with Shipping

Separate gross margin, markup and after-shipping contribution using landed cost, discount, shipping subsidy and payment fees.

Currency: USD only. Landed cost includes product, inbound freight and duty.

Price and cost inputs

Planning model. One order, USD only. Excludes ad spend, fixed overhead, taxes, refunds and currency conversion. Gross margin is not net profit.

Saved only in this browser. Nothing is uploaded.

Gross margin and contribution

Gross margin

58.33%Profitable. Gross profit ÷ selling price.
Gross profit$35.00Price − landed cost − discount.
Markup140.00%Price − landed cost, divided by landed cost.
After-shipping contribution$27.96After landed cost, discount, shipping and payment.
Contribution margin46.60%Contribution ÷ selling price.
Payment fee$2.04Percentage on discounted price + fixed fee.
StatusProfitableContribution after shipping and payment.

Line-by-line build

How the selling price becomes after-shipping contribution.

LineAmount
Selling price$60.00
Landed cost-$25.00
Discount$0.00
Shipping subsidy-$5.00
Payment fee-$2.04
Contribution$27.96

How the three measures differ

Gross profit = price − landed cost − discount. Gross margin = gross profit ÷ price. Markup = (price − landed cost) ÷ landed cost. Payment = (price − discount) × payment % + fixed fee. Contribution = price − landed cost − discount − shipping subsidy − payment. Contribution margin = contribution ÷ price.

Your inputs are calculated in the browser and are not sent to a server.

Gross margin with shipping: margin, markup and contribution are not the same

Gross margin, markup and after-shipping contribution answer different questions. This calculator shows all three from the same order so a healthy-looking margin does not hide a thin contribution.

Three measures, three denominators

Gross margin divides gross profit by the selling price. Markup divides the gap between price and landed cost by the landed cost. After-shipping contribution subtracts shipping and payment as well.

A 58% gross margin and a 140% markup can describe the same $60 order. They are not interchangeable, and neither is net profit.

Landed cost is more than the product

Landed cost includes the product, inbound freight and duty. If you use the factory price only, gross margin looks better than it is.

Keep the landed cost per unit current. Freight and duty move more often than product cost.

Worked example

Price $60, landed cost $25, no discount, shipping subsidy $5, payment 2.9% + $0.30.

Gross profit is $35, gross margin 58.33% and markup 140%. Payment is $2.04, so after-shipping contribution is $27.96 and contribution margin is 46.60%.

Discounts move all three

A $10 discount lowers gross profit to $25 and gross margin to 41.67%, but markup stays 140% because it does not include the discount. Payment falls to $1.75 and contribution to $18.25.

This is why a discount discussion should use contribution, not markup. Markup can look unchanged while the order becomes much less profitable.

When price is below cost

If landed cost plus discount exceeds the price, gross profit is negative. The calculator shows a warning rather than hiding it behind a percentage.

If landed cost is zero, markup is undefined because the denominator is zero; gross margin can still be calculated. That is a boundary, not a 100% markup.

Where gross margin stops

It excludes ad spend, fixed overhead, taxes and refunds. A positive gross margin does not guarantee a profitable order after acquisition cost.

Use the contribution line for shipping and payment, then a net profit or LTV model for ads, overhead and repeat purchases.

Margin and markup references checked October 2026: Shopify profit margin calculator · Omni margin calculator · Calculator.net margin

What is the difference between margin and markup?+

Margin divides profit by selling price; markup divides profit by landed cost. The same $60 price and $25 cost produce a 58.33% margin and a 140% markup.

Does gross margin include shipping?+

The gross margin line does not include the shipping subsidy. The after-shipping contribution line does, along with payment fees.

Why is markup blank when landed cost is zero?+

Markup divides by landed cost. Zero landed cost makes the result undefined, so the calculator shows a dash instead of a misleading number.

Is after-shipping contribution the same as net profit?+

No. It still excludes ad spend, fixed overhead, taxes and refunds. It is a step between gross margin and net profit.

Should I use this for a discounted order?+

Yes. Enter the discount amount; payment is calculated on the discounted price, and contribution reflects the lower revenue.

NEXT STEP