To improve operating margin you pull three levers: lift net sales without adding proportional cost, cut the direct cost of each unit you sell, and trim operating expenses — with paid ad spend usually the biggest lever of the three. Operating margin is your operating profit divided by net sales, so every dollar you save below the sales line moves the percentage directly. The trick is knowing which lever is actually dragging you, and for most Shopify and print-on-demand stores that answer is customer acquisition cost hiding in plain sight.

Most articles on this topic hand you the same vague list: "understand your costs," "negotiate with suppliers," "be more efficient." True, but useless without numbers. This guide walks the actual math on a small store, shows exactly how much each move is worth, and names the one line item that quietly eats your margin.

What operating margin actually measures

Operating margin tells you whether the business works — not just whether the product is priced well. Here is the formula:

Operating margin % = Operating profit ÷ Net sales

Where operating profit = Net sales − Cost of Goods Sold (COGS) − Operating expenses (OpEx). It sits above interest and taxes, so it isolates how well your day-to-day operation converts sales into profit. If you want the full line-by-line build of a store's income statement, our ecommerce P&L guide walks every row from gross sales down to the bottom line.

The reason operating margin, not gross margin, is the honest number: gross margin can look fantastic while the business bleeds. A store can run a fifty-percent-plus gross margin and still barely clear a profit once ads, apps, and owner pay come out. Operating margin catches all of that.

Start from a real number

You cannot improve a margin you have not measured correctly. Say you run a t-shirt store on Shopify doing 300 orders a month at a roughly $32 average order value. Here is a clean monthly operating statement (all figures illustrative):

  • Gross sales (300 × ~$32): $9,600
  • Less discounts (a 10%-off code): −$480
  • Less refunds (9 orders): −$290
  • Net sales: $8,830
  • COGS — print-on-demand production (300 × ~$12): −$3,600
  • COGS — payment processing: −$346
  • Gross profit: $4,884 (55.3% gross margin)
  • OpEx — Meta and Google ad spend: −$3,000
  • OpEx — Shopify plan and apps: −$180
  • OpEx — email and design tools: −$90
  • OpEx — owner draw and contractor: −$500
  • Operating profit: $1,114 → operating margin 12.6%

The processing line reflects a common online-card rate of about 2.9% plus 30¢ per transaction on lower-tier plans; verify your own rate, since Shopify's processing fees fall as you move to higher plans according to A2X's breakdown of Shopify fees.

Read that statement and the diagnosis is obvious: the product is healthy at 55.3% gross margin, but ad spend swallows most of the gross profit. That is the story of nearly every growing ecommerce store, and it points straight at the biggest lever.

Lever 1: Cut the cost that is actually killing you (ad spend)

The generic advice says "reduce overhead." For an ecommerce store, the overhead that matters is customer acquisition cost. Here it is $3,000 — more than double every other operating expense combined.

The mistake that hides this is putting ad spend in COGS. It scales with revenue, so it feels like a cost of goods. But burying acquisition cost in COGS inflates your gross margin and hides that CAC is your real risk. Keep ad spend in OpEx, where the P&L can scream the truth.

Now the worked move. Suppose you find, order by order, that a chunk of your spend is going to campaigns and products that lose money on every sale. You reallocate away from the worst performers and cut $600 of pure waste while holding revenue roughly flat.

New operating profit = $1,114 + $600 = $1,714. New operating margin = 1,714 ÷ 8,830 = 19.4%.

You just moved from 12.6% to 19.4% without selling a single extra shirt. That is the leverage of attacking your largest operating cost first. The catch: you can only cut waste if you can see per-order profit — which campaign, which product, which order actually made money after production, processing, and ad cost. Blended ROAS will not tell you.

Lever 2: Lower true COGS (the print-on-demand double-tax trap)

The second lever is the direct cost of each unit. Suppliers, print cost, and one leak that print-on-demand sellers almost universally miss: paying sales tax on supplier orders.

When Printify or Printful produces your product, you are buying goods to resell — which should be exempt from supplier sales tax if you submit a valid resale certificate first. Skip it and, per Printful's help center on resale certificates, the supplier charges you sales tax on every production order, and there are no retroactive refunds once the order is placed. Since you also collect tax from your customer, you pay tax twice on the same item.

Say your supplier was charging roughly 8% tax on $3,600 of monthly production — about $288 you should not be paying. Fix the certificate and that $288 drops your COGS.

New gross profit = $4,884 + $288 = $5,172. New operating profit = $1,402. New operating margin = 1,402 ÷ 8,830 = 15.9%.

Other COGS levers work the same way arithmetically: negotiate a lower blank cost, upgrade to a supplier tier with cheaper printing, or shift your best-selling design to a cheaper garment. Every dollar out of COGS lands dollar-for-dollar in operating profit. (This is general information, not tax advice — rules change and vary by situation; consult a licensed CPA before acting.)

Lever 3: Raise net sales without adding cost

The third lever is the top line — but only the efficient part of it. Not all revenue is equal.

The cleanest version is a price increase, because your costs barely move. Say you raise prices 5%, pushing net sales to roughly $9,272, while COGS and OpEx stay flat. Operating profit = $9,272 − $3,946 − $3,770 = $1,556, and operating margin = 1,556 ÷ 9,272 = 16.8%. A 5% price rise lifted the margin by more than 4 points, because the extra revenue carried almost no extra cost. (Real price increases can cost you some volume — model that honestly before committing.)

Two more top-line moves with the same logic:

  • Stop over-discounting. That $480 coupon line is pure margin given away. Trimming it to $240 adds $240 straight to operating profit.
  • Raise average order value. Bundles and volume offers spread your fixed per-order costs (that 30¢ processing fee, packaging, the acquisition cost of that customer) across a larger basket, lifting margin without new traffic.

The through-line across all three levers: they only work when you can see which products, orders, and campaigns are profitable. Clean, reconciled books make that visible. Our guides on connecting Shopify to your accounting and automating ecommerce bookkeeping show how to get the underlying numbers trustworthy first.

Don't confuse a better margin with more cash

One warning the generic guides skip: improving operating margin does not automatically fix your bank balance. Profit is booked on the sale date; cash moves on Shopify's payout schedule. Ad spend leaves your card daily while payouts settle on a delay, so a profitable store can still be cash-short mid-month. Improve the margin, but size a cash buffer to your worst-case gap between paying for ads and the payout landing.

Where the numbers usually come from

Here is the honest problem: pulling per-order profit by hand across Shopify, your ad platforms, your supplier, and Stripe is where most owners give up. That is the gap PodVector fills. It connects Shopify, Meta Ads, Google Ads, Printify, and Printful, then computes true per-order profit — production, processing, and ad cost netted against each sale.

Its AI operator, Victor, analyzes that data and proposes moves you approve; the actions he executes are Shopify-side. Victor reads your ad data to flag which spend is losing money, but he does not touch your ad account — you make the platform changes. And Victor is not a dashboard; he is an operator that surfaces the levers above and, with your sign-off, acts on the Shopify side. When your books and tax reporting need to stay clean alongside all this, our roundup of VAT calculation and reporting tools for ecommerce is a useful next stop.

FAQs

What is a good operating margin for a small ecommerce store?

There is no universal target, but a commonly cited benchmark holds that a net profit margin around 10% is average for a small business, 20% is strong, and 5% is low, according to ActionCoach's guide on profit margins. Operating margin sits just above net margin (before interest and taxes), so aim a few points higher than your net-margin goal. What matters more than the benchmark is the trend: is yours climbing month over month?

What is the difference between gross margin and operating margin?

Gross margin is net sales minus COGS, divided by net sales — it measures your product economics. Operating margin goes further down the statement, subtracting all operating expenses (ads, apps, software, pay) before dividing by net sales — it measures whether the business works. A store can have a high gross margin and a thin or negative operating margin, which is exactly why you track both.

Should ad spend go in COGS or operating expenses?

Operating expenses. Even though ad spend scales with revenue, it is paid customer acquisition, not a direct cost of producing a unit. Putting it in COGS inflates your gross margin and hides that acquisition cost is your real risk. Keeping it in OpEx keeps your gross margin honest and makes the CAC problem visible.

How fast can I improve my operating margin?

Some levers move immediately: fixing a resale certificate, trimming a discount code, or killing an unprofitable campaign changes next month's statement. Others — renegotiating supplier pricing, testing a price increase, lifting average order value — play out over a few months as you measure the volume impact. Start with the fastest, highest-value lever, which for most stores is cutting ad waste you can identify at the per-order level.

Why is my store profitable on paper but short on cash?

Because profit and cash run on different clocks. Your operating margin is booked when the sale happens, but ad spend leaves daily and Shopify payouts arrive on a delay, so a growing, ad-funded store can show profit while the bank account tightens. Improving margin helps, but you also need a cash buffer sized to the gap between paying for ads and receiving the matching payout.