Guide · Profit and finance

How to increase profit margin in an online store

The levers that raise a webshop's margin, line by line: price, order value, product cost, shipping, fees, returns, ad spend, retention and overheads.

Updated · 11 min read

By the ROASaurus team

The short answer
  • A margin rises in two ways: more revenue per order at the same cost, or less cost per order at the same revenue. Every lever below is one of the two.
  • Small changes compound: two points of gross margin can lift net profit by a quarter when net margin is around eight percent.
  • The fastest levers are usually ad spend that does not earn back its margin, free shipping and free returns that cost more than they bring, and costs nobody reviewed for a year.
  • Work on contribution margin (after product, shipping, fees and ads), because that is what pays for the business and what decides how much you can spend to grow.
  • Measure first, change one thing, and check its effect in next month's numbers.

Most stores try to grow profit by growing revenue. It works until ads get more expensive, discounts get deeper and the extra orders bring less than they cost. Raising the margin is the other route: keeping more of each sale you already make.

This guide goes through the levers line by line, from price to overheads, with what to do for each and what to watch. How to calculate each margin is in the profit margin formula guide; how to find where your margin goes is in profitability analysis.

Profit margin in one paragraph

Profit margin is the share of revenue you keep after costs. Gross margin subtracts only the product cost; operating margin subtracts what it takes to run the store; net margin subtracts everything, including tax and interest. Between gross and operating sits the one that matters most for a webshop: contribution margin, revenue minus every cost that comes with an order (product, shipping, packaging, payment fees) and, after ads, minus marketing. It is what each order leaves to pay for staff, software and profit.

Contribution margin=net revenue − product cost − shipping − packaging − payment fees − ad spend
Net revenue
Sales after discounts and refunds, without VAT.
The variable costs
Every cost that grows with the number of orders.

What a good margin is, and why it matters

There is no single good margin: it depends on what you sell, whether you make it or resell it, and how much of your growth comes from ads. A better yardstick is what your own business needs. Contribution before ads has to cover what you pay to win an order; contribution after ads has to cover your fixed costs and leave a profit. The profitability analysis guide shows how to work that out and how to read benchmarks.

A better margin gives you more than profit. It gives you room: more you can pay per new customer, a buffer when ad costs rise or a supplier raises prices, cash to buy stock and test new channels, and a business that is worth more to a buyer or lender.

Why small changes add up

When net margin is thin, a small gain in margin is a large gain in profit. For a fictional store with €1.2 million revenue a year and an 8% net margin:

Four small changes, one yearSample data
Net profit today (8% of €1,200,000)€96,000
Prices up 2%, no fewer orders+€24,000
Carrier renegotiated: €0.40 less on 25,000 orders+€10,000
Campaigns with POAS below 1 paused: €18,000 spend saved, €12,000 contribution lost+€6,000
Unused apps cancelled: €350 a month+€4,200
Net profit after the changes (+46%)€140,200
Example data for a fictional store. The price rise assumes no drop in orders; test it before you count on it.

None of these needed more ad spend. That is the case for margin work: it compounds on the orders you already have.

Lever 1: price and discounts

Price is the lever with the most direct effect: every euro of a price rise that customers accept is profit.

  • Test price rises on products where you are not the cheapest for a reason (brand, quality, service). Raise in small steps and watch conversion and orders per product.
  • Price new products for a target margin: price = variable cost ÷ (1 − target margin). See pricing strategies.
  • Replace blanket discounts with targeted ones: a code for new customers or lapsed customers rather than a sitewide sale that also discounts people who would have paid full price.
  • Bundle products that are bought together: a bundle lifts the order value and spreads shipping and payment fees over more revenue.
  • Check each code's profit, not its revenue. A code can bring many orders and few new customers.

Lever 2: order value

Shipping, packaging and part of the payment fee cost about the same for a €30 order as for a €60 one. Bigger baskets spread those costs.

  1. Offer upsells by cart value

    When a cart is close to a threshold, show one relevant add-on that crosses it. The customer is already buying; a small add-on is an easy yes.

  2. Cross-sell what customers really buy together

    Use your order data: which second product appears most often with the first. Suggest that, not a random bestseller.

  3. Set the free-shipping threshold above your average order

    If your average order is €48, a threshold around €55 makes free shipping a reason to add an item. A threshold below the average gives shipping away on most orders.

  4. Use volume pricing on consumables

    Two- or three-packs at a small discount raise the basket and bring the next purchase forward.

More ideas, with their effect on margin, are in how to increase average order value.

Lever 3: product cost

  • Negotiate with your top suppliers first. List the products that make up most of your cost of goods, and bring your volumes for the last twelve months to the conversation. Ask for a price break at a volume you can commit to, payment terms, or free inbound freight.
  • Count the landed cost. Purchase price plus freight, duties and handling is what the product costs you. A cheaper supplier further away can be dearer landed. Tariff changes belong here; see tariffs and ecommerce.
  • Turn stock faster. Slow stock ties up cash, risks discounting and costs storage. Buy smaller batches of slow sellers and clear dead stock before it ages further.
  • Keep costs current. Record a new cost with the date it applies from, so the margin per product stays true. See cost of goods sold.

Lever 4: shipping and fulfilment

  1. Renegotiate carrier rates with your recent volume

    Carriers price by volume and profile. Bring last year's parcels by weight and zone; ask again when volume grows.

  2. Use more than one carrier

    Different carriers are cheapest for different weights and countries. Shipping software or a fulfilment partner can pick per parcel.

  3. Cut package size and weight

    Dimensional weight means a box that is too big costs extra. Right-size packaging for your top products.

  4. Charge for shipping where you can

    Know what you pay per order and what customers pay. The difference is a cost you chose; make it a deliberate one.

  5. Check fulfilment invoices line by line

    Pick-and-pack fees, storage, surcharges and returns handling add up and change with contracts.

More on rates, labels and calculating the real cost per order in shipping costs for an online store.

Lever 5: payment, platform and app fees

Each fee is small, so nobody reviews them. Together they often take several percent of revenue.

  • Compare payment providers per method and per country; a cheaper rate on your largest method matters more than a headline rate.
  • Watch currency conversion fees when you sell abroad or buy in another currency.
  • Audit apps and software every quarter. Cancel what nobody uses; downgrade what you use partly. Ten apps at €29 a month are €3,480 a year.
  • Look at marketplace and transaction fees per channel, and price marketplace listings so they carry them.

Lever 6: returns and refunds

A return costs more than the refund. For a fictional fashion order, before any product that cannot be sold again:

What one return costsSample data
Outbound shipping (already paid)€5.50
Return label€5.50
Receiving, checking and restocking€3.00
Payment fee that is not refunded€1.20
Cost of the return, on top of the lost sale€15.20
Example data for a fictional store.
  • Offer store credit next to a cash refund, perhaps with a small bonus. The money stays in the business and often comes back as a new order.
  • Rethink free returns. Charging a modest return fee can lower conversion a little and returns a lot; test it on the products with the highest return rate.
  • Fix the cause. Size charts, better photos and honest descriptions lower returns for the products that have most.
  • Watch chargebacks. A disputed payment costs the sale, the product and a dispute fee; clear descriptors on bank statements and quick answers to customers prevent many of them.

Lever 7: ad spend

Ad spend is often the largest variable cost after the product, and the one most often judged on the wrong number.

  1. Stop ads that do not meet a profit target

    Judge campaigns on POAS (contribution before ads ÷ spend) or against your break-even ROAS, not on ROAS alone. A campaign with a strong ROAS on low-margin products can lose money.

  2. Move the saved budget to campaigns that earn

    Scale in steps and watch whether the extra spend keeps its return; each extra euro usually returns a little less than the last.

  3. Run a full funnel

    Prospecting finds new customers, retargeting and email convert them. Judge prospecting on new customers and their value, not only on its own orders.

  4. Feed the platforms complete, accurate conversions

    Ad platforms optimise on the conversions they receive. Missing purchases make them bid on the wrong people; server-side tracking sends paid orders from your server.

  5. Bid on profit where the platform allows it

    Sending profit instead of revenue as the conversion value lets the platform prefer high-margin orders. See profit optimisation on Meta.

Lever 8: retention

A repeat order usually needs little or no ad spend, so it carries a higher contribution than a first order. Steps that raise retention:

  • A post-purchase email flow: thank you, how to use the product, a review request, a reorder reminder timed to when the product runs out.
  • A reason to come back: new products, a loyalty programme with a real benefit, or early access for previous buyers.
  • Win-back for lapsed customers, with a smaller incentive than for strangers.
  • Good service on the first order: fast delivery and an easy answer when something goes wrong are what customers remember.
  • Cohorts to measure it: the share of each month's new customers who order again within 90 days. See cohort analysis.

Lever 9: overheads and team

Overheads do not grow with each order, so they drop out of most margin conversations. They should not. Staff, agencies, software and rent decide operating margin. When sales slow, the team that handles stock and orders often has spare time; move it to work that lowers costs or lifts margin (returns handling, product data, customer service that saves orders) before hiring more. Review agency retainers against what they deliver in profit, not in reported ROAS.

The silent costs that eat net profit

Some costs never appear in a sales dashboard and grow unnoticed: chargebacks with their fees, returns shipping, platform and app fees, stock that sits or runs out, and sales tax or VAT handled wrongly. Each is covered with how to find it in the profit leaks guide. The rule that catches them all is the same: record every cost against the period and the order it belongs to, and look at the margin after all of them.

Profit optimisation, step by step

Profit optimisation is the steady version of the levers above: improving decisions to raise net profit, not revenue. It differs from profit maximisation, which aims at the highest profit now, even at the cost of customers or the brand later. Optimisation weighs the long run.

  1. Track profit per product

    Product cost, shipping, fees and ad spend per product show which products carry the store.

  2. Set prices with the margin in view

    Reprice products whose margin after shipping and fees is too thin to advertise.

  3. Lower product cost

    Negotiate, consolidate suppliers, buy at the right batch size.

  4. Raise order value

    Thresholds, bundles and relevant add-ons.

  5. Cut ad waste

    Pause what does not earn back its margin; scale what does.

  6. Keep customers

    Retention lowers the cost per order over a customer's lifetime.

  7. Review monthly

    Compare margins with last month and last year, find the line that moved, and choose the next change.

Tools for margin work

Three kinds of tools help, and they do different jobs:

ToolWhat it doesWhat it does not do
SpreadsheetFlexible; good for a one-off price or cost check.Stay current: every number is pasted in by hand.
Accounting softwareRecords every transaction for tax and the year-end accounts.Show profit per product, order or campaign while you can still act on it.
Profit analyticsCombines orders, product costs, shipping, fees and ad spend into profit per product, order, campaign and channel, updated as orders arrive.Replace your accountant or the official accounts.

Swipe the table sideways to see every column.

How to find your margin levers in ROASaurus

ROASaurus shows the margin at each step for the store, product, order and campaign, and points at the lines that moved.

In ROASaurusProfit › Overview
  1. Open Profit › Overview for the period: revenue, costs, gross profit, contribution, net profit, blended ROAS against break-even ROAS, and POAS.
  2. Open Actions › Recommendations › Profit insights: the biggest risk and opportunity it found, such as campaigns that lose money after costs, products that lose money before ads, a rising refund rate, products without a cost, or payment gateways without a fee rule.
  3. Check Profit › Breakdowns for discount codes, payment gateways and shipping by country (what customers paid for shipping against what it cost you).
  4. Try a change before you make it in Profit › Goals & planning › Simulators: the shop simulator applies a revenue, variable cost, ad spend or operating cost change to your last 30 days; the pricing simulator gives the price for a target margin.
  5. Use Marketing › Channels & campaigns › Profit per campaign to find campaigns with POAS below 1.
The ROASaurus Mac app showing Profit insights: the biggest risk, the biggest opportunity and the health of profitability, demand, costs, marketing and products. Fictional demo store, simulated data.
The ROASaurus iPhone app showing Profit insights: the biggest risk, the biggest opportunity and the health of profitability, demand, costs, marketing and products. Fictional demo store, simulated data.
Actions › Profit insights: the biggest risk and opportunity, and the health of each cost area. Fictional demo store, simulated data.

Start freeOpen the live demo14-day trial of every feature, no credit card.

More guides on profit and finance · All guides

FAQ

Questions, answered

More answers in the FAQ and the help center.

How do you increase profit margin?

Earn more per order at the same cost, or spend less per order at the same revenue. In practice: price and discount discipline, higher order value, lower product, shipping and fee costs, fewer returns, ads judged on profit, better retention and lean overheads.

What raises a profit margin the fastest?

Usually pausing ad spend that does not earn back its margin, raising a free-shipping threshold that sits below the average order, and cancelling costs nobody reviewed. A price rise works fast too, if customers accept it.

How do I improve gross margin?

Raise prices where you can, lower the landed product cost (negotiate, consolidate suppliers, cheaper freight), cut discounting, and shift the mix towards products with a higher margin.

What improves net profit margin?

Everything that improves gross and contribution margin, plus lower overheads: staff, software, agencies and rent. Net margin also improves when revenue grows faster than fixed costs.

How do you add a 20% profit margin to a product?

Divide the cost by 0.80. A product that costs €40 needs a €50 price for a 20% margin. Adding 20% to the cost (€48) gives only a 16.7% margin.

Is a 30% profit margin too high?

Not as a gross or contribution margin, which is often higher. As a net margin it is high for most stores but not too high; it means more room to spend on growth.

What is profit optimisation?

Improving pricing, costs, marketing and operations to raise net profit over time, rather than revenue. Unlike profit maximisation, it does not trade long-term customers or brand for profit now.

How can I lower shipping costs?

Renegotiate with your recent volumes, compare carriers per weight and country, right-size packaging, set a free-shipping threshold above your average order, and check fulfilment invoices for surcharges.

What affects profit margin most in ecommerce?

Product cost, ad spend per order, shipping and returns. Their share differs per store, so look at your own P&L as a share of revenue to see which line is largest and which moved most.

Every sale, traced to the ad that earned it

Server-side tracking, profit and lifetime value in one app. Free plan, no credit card.