Operating expenses (and how they differ from COGS)
The costs of running a business that are not the cost of the goods it sells: fulfilment and fees, marketing, salaries, rent, software and depreciation. Gross profit minus operating expenses is operating income.
In plain words
Operating expenses, OpEx in short, are everything a store spends to keep trading, apart from buying or making the products. Some grow with each order, such as shipping labels and payment fees; some with each campaign, such as ad spend; and some stay the same month after month, such as salaries, rent and software subscriptions. Cost of goods sold is kept apart because it moves one-for-one with units sold and decides gross margin. Non-operating expenses, such as interest on a loan or a loss on selling equipment, are kept apart too, because they do not come from the trade. Getting the three in the right place is what makes gross margin, operating margin and net margin mean something.
Formula
- Selling costs
- outbound shipping, packaging, pick and pack, payment and marketplace fees
- Marketing
- ad spend, influencers, affiliates, agency fees, content
- General and administrative
- salaries, rent, software and apps, accounting, insurance, office
- Operating expense ratio
- operating expenses ÷ net revenue × 100
Worked example
ROASaurus Demo Store (fictional), without VAT.
| Outbound shipping, packaging and payment fees | €5,850 |
|---|---|
| Ad spend and other marketing | €9,900 |
| Staff | €4,500 |
| Rent and storage | €1,200 |
| Software and apps | €900 |
| Accounting, insurance and other | €400 |
| Depreciation of equipment | €250 |
| Operating expenses | €23,000 |
| Operating expense ratio (on €45,000 net revenue) | 51.1% |
| Not OpEx: cost of goods sold | €18,000 |
| Not OpEx: interest on a stock loan | €300 |
Fixed and variable OpEx
Variable operating expenses rise and fall with orders: shipping, packaging, payment fees, marketplace fees, and often ad spend. Fixed operating expenses stay the same at any volume within a range: salaries, rent, subscriptions, insurance. Variable ones decide contribution margin; fixed ones decide how many orders the store needs to break even.
OpEx vs. CapEx, COGS and non-operating expenses
| Type | What it covers | Where it goes | Store example |
|---|---|---|---|
| COGS | The cost of the units sold | Above gross profit | A serum bought for €16 |
| OpEx | Running the store | Between gross profit and operating income | Shipping labels, ads, salaries |
| CapEx | Assets that last for years | Balance sheet, then depreciation in OpEx | A label printer, a warehouse fit-out |
| Non-operating expenses | Costs outside the trade | Below operating income | Interest, a loss on a sold van |
Swipe the table sideways to see every column.
Are you spending too much?
Track the operating expense ratio, and each main group as a share of revenue: fulfilment and fees, marketing, and overheads. Published ecommerce benchmarks put very different stores together, so treat them as a rough range. A better test is your own trend and your gross margin: the operating expense ratio must stay below the gross margin, or the store loses money before interest and tax. In the example, 51.1% against a 60% gross margin leaves an 8.9% operating margin.
Managing OpEx
- Review subscriptions every quarter; cancel apps that no one uses.
- Renegotiate shipping and payment rates once volume grows.
- Judge ad spend on profit per campaign, not revenue.
- Automate repeated work before hiring for it.
- Put every cost into the P&L monthly, so nothing grows unseen.
Non-operating expenses
Non-operating expenses come from outside the trade: interest on loans and credit lines, losses on selling assets, currency losses on foreign payouts, one-off legal settlements, write-offs of investments. They are usually irregular, do not grow with sales, and depend on financing choices or events rather than on how well the store sells. They count in net profit but not in operating income. Watch them next to the interest coverage (operating income ÷ interest) and the gap between operating and net margin. Shopify's own reports do not show them, because they never pass through the shop; they come from the bank and the accounts.
COGS vs. operating expenses
| COGS | Operating expenses | |
|---|---|---|
| Moves with | Units sold | Orders, campaigns or time |
| Includes | Product cost, inbound freight, duties | Outbound shipping, fees, ads, staff, rent, software |
| Sits above | Gross profit | Operating income |
| Main lever | Sourcing and pricing | Efficiency and spend decisions |
Swipe the table sideways to see every column.
Tracking them apart shows which lever to pull. A falling gross margin points to suppliers, prices or discounts; a falling operating margin at stable gross margin points to fulfilment, marketing or overheads. To track both, set a cost per variant for COGS and enter running costs as recurring expenses in the same P&L.
In ROASaurus
Settings › Costs › Custom costs- Open Settings › Costs › Custom costs and add each running cost: one-time, daily, weekly, monthly, yearly, per order, or as a % of revenue, COGS, shipping or ad spend.
- Pick a category for each, such as rent, software, staff, marketing or interest; the category decides where it lands in the P&L.
- Import expenses from QuickBooks, Xero or Google Sheets, or scan a bill with Ask AI.
- Shipping rules and payment fees per gateway are set under Settings › Costs › Cost settings; product costs under Product costs.
- Profit › P&L then shows operating expenses, staff and the other overheads above EBITDA, and interest, depreciation and income tax below it.

Start freeOpen the live demo14-day trial of every feature, no credit card.
Read more
- Profitability analysis
- Shopify accounting
- Profit and loss statement for an online store
- Gross, operating and net profit
- Marginal analysis
- Profit analytics
Related terms
- Cost of goods
What the products a store sold in a period cost to buy or make, including inbound freight and import duties. Revenue minus COGS is gross profit.
- Operating income
Profit from the business's own trade: gross profit minus operating expenses, before interest, income tax and income or costs from outside the trade. Also called operating profit or EBIT.
- Operating margin
Operating income as a share of revenue: the percentage of each euro of sales left after the cost of goods and every cost of running the store, before interest and tax.
- Non-operating revenue
Income that does not come from a business's main activity: for a webshop, anything other than selling its products, such as interest, a gain on selling equipment or an insurance payout.
- Contribution margin
What is left of revenue after the costs of each order: product cost, shipping, payment fees and, in later steps, marketing. ROASaurus shows it in three steps, CM1 to CM3.
- Net profit
What a business keeps after every cost of a period is paid: products, fulfilment, fees, marketing, overheads, interest and tax. The bottom line of the P&L.
What is not an operating expense?
Cost of goods sold, capital purchases such as equipment (only their depreciation is), interest, income tax, and losses outside the trade.
Are operating expenses tax deductible?
In most countries ordinary business expenses are deductible from taxable profit, within each country's rules. Ask your accountant about specific items.
What is a good operating expense ratio?
One that stays well below your gross margin. Watch its trend: a ratio that rises while revenue grows means costs scale with sales instead of spreading.
Can operating expenses be reduced?
Usually. Start with the largest lines: ad spend that does not return profit, shipping rates, unused software, and work that can be automated.
Is inventory COGS or an operating expense?
Neither while it sits in stock: inventory is an asset. It becomes COGS when the units are sold. Storage costs for it are operating expenses.
What expenses are not included in COGS?
Outbound shipping in most definitions, payment fees, marketing, salaries outside production, rent for offices, software and interest.
Why is COGS not an operating expense?
Because it is the cost of the product itself, which moves exactly with units sold. Keeping it apart gives gross profit, which shows whether products earn more than they cost.
Can you have COGS without inventory?
Yes. Dropshipping and print-on-demand stores hold no stock, but the supplier's charge for each order is still COGS.
Are payment processing fees operating or non-operating expenses?
Operating: they come with every order. Many ecommerce P&Ls subtract them right after COGS, together with shipping.
Do Shopify stores have non-operating expenses?
Often: interest on a loan or a revenue-based advance, currency losses on foreign payouts, losses on sold equipment. They come from the bank and the books, not from the shop.
Every sale, traced to the ad that earned it
Server-side tracking, profit and lifetime value in one app. Free plan, no credit card.