Guide · Profit and finance
The profit and loss statement for an online store: build it, read it, automate it
How to build an ecommerce profit and loss statement line by line, with a worked example, a year-to-date view, common mistakes and how to keep it current.
- A profit and loss statement (P&L, income statement) lists a period's revenue and costs and ends with the net profit or loss.
- For a webshop it runs: gross sales, minus discounts and returns, is net sales; minus product, fulfilment and payment costs is gross profit; minus marketing is contribution; minus overheads is net profit.
- Build it monthly from your shop's orders, your product costs, your ad accounts and your bank statements; keep a year-to-date column next to the month.
- The common mistakes are forgetting refunds, payment and app fees, outdated product costs and mixing personal spending in.
- Read it top to bottom as a chain of margins: each step shows where the money goes, which a single profit figure hides.
A profit and loss statement answers one question: did the store make money in this period, and where did the rest go? It starts with what customers paid, subtracts every cost in a fixed order, and ends with net profit. Accountants call it the income statement; most founders call it the P&L.
This guide builds an ecommerce P&L from scratch, with a worked example in labelled example numbers, then shows how to read it, how a year-to-date view differs from a monthly one, and how to stop rebuilding it by hand every month.
What a profit and loss statement is
A P&L covers a period: a day, a month, a quarter, a year, or the year so far. For that period it lists:
- Revenue: what customers paid for your products, after discounts and refunds.
- Costs that come with each order: the products themselves (cost of goods sold), shipping, packaging, payment fees, marketplace fees.
- Marketing: ad spend, influencer fees, affiliate commissions.
- Overheads: salaries, rent, software, accounting, insurance. These do not grow with each order.
- The result: net profit, or a net loss.
It is one of three standard financial statements. The other two answer different questions, which is why a profitable store can still run out of cash.
| Statement | Question it answers | Covers |
|---|---|---|
| Profit and loss (income statement) | Did we make money? | A period (this month, this year) |
| Balance sheet | What do we own and owe? | One moment (31 December) |
| Cash flow statement | Where did the cash go? | A period, counting cash in and out |
Swipe the table sideways to see every column.
What you need before you start
- Orders: gross sales, discounts, refunds, shipping charged and taxes collected, from your shop system (Shopify, WooCommerce or other) or its payout reports.
- Product costs per variant (cost of goods), including inbound freight and import duties if you pay them.
- Shipping invoices from your carriers or fulfilment partner, and packaging costs.
- Payment provider statements (Shopify Payments, Stripe, PayPal, Klarna) for transaction fees.
- Ad spend per platform for the same dates (Meta, Google, TikTok and others), in the same currency.
- Overheads: salaries, software subscriptions, rent, accountant, insurance, from your bank and card statements.
- Marketplace statements if you sell on Amazon, eBay or others: selling, fulfilment and storage fees.
How to build the P&L, step by step
- Net sales
Start with gross sales (the list price of everything sold), then subtract discounts and the value of refunds and returns. What is left is what customers really paid for products.
- Revenue
Add shipping you charged the customer, if you count it as revenue. Leave out VAT and sales tax collected: it is the tax authority's money passing through your account.
- Gross profit
Subtract cost of goods sold, then the costs of getting each order out: shipping you paid, packaging, handling, payment and order fees, and marketplace fees. Some stores stop at cost of goods for gross profit; the order costs then follow under contribution. Pick one and keep it.
- Contribution margin
Subtract ad spend and other marketing costs. Contribution is what the orders left to pay for the business itself.
- Operating profit (EBITDA)
Subtract overheads: staff, rent, software, professional fees. Add other operating income such as a supplier rebate.
- Net profit
Subtract depreciation, interest and income tax. What remains is the bottom line: the profit or loss of the period.
- Net sales
- Gross sales minus discounts and refunds.
- Order costs
- Cost of goods sold, shipping, packaging, handling, payment and marketplace fees.
- Marketing
- Ad spend, agency and influencer fees, affiliate commissions.
- Overheads
- Costs that stay when sales drop: staff, software, rent, accounting.
A worked example: one month of a webshop
The ROASaurus Demo Store is a fictional skincare shop. Here is its P&L for one month, built with the steps above.
| Gross sales | €62,000 |
|---|---|
| Discounts | −€4,200 |
| Refunds and returns | −€2,800 |
| Net sales | €55,000 |
| Shipping charged to customers | €3,000 |
| Revenue | €58,000 |
| Cost of goods sold | −€16,500 |
| Shipping paid and packaging | −€5,400 |
| Payment fees | −€1,700 |
| Gross profit (59.3% of revenue) | €34,400 |
| Ad spend (Meta, Google, TikTok) | −€14,000 |
| Influencer and affiliate fees | −€1,600 |
| Contribution margin (32.4%) | €18,800 |
| Staff | −€9,000 |
| Software and apps | −€1,100 |
| Accountant, insurance, other | −€1,300 |
| Operating profit, EBITDA (12.8%) | €7,400 |
| Depreciation and interest | −€400 |
| Income tax (estimate) | −€1,750 |
| Net profit (9.1%) | €5,250 |
Read it from the top: more than 40 cents of every euro of revenue go to the products and getting them to the customer, more than a quarter goes to marketing, a fifth to overheads, and nine cents are left. Each step is a lever: a cheaper carrier moves gross profit, a better-performing campaign moves contribution, a cancelled tool moves EBITDA.
How to read your P&L
Read the statement as a chain of margins rather than a list of costs. Each subtotal, divided by revenue, tells you something different.
| Margin | Formula | What a drop usually means |
|---|---|---|
| Gross margin | gross profit ÷ revenue | Supplier prices rose, discounts grew, shipping got dearer, or the product mix moved to cheaper items. |
| Contribution margin | contribution ÷ revenue | Ads got more expensive per order, or campaigns bring orders with a thin margin. |
| Operating margin | EBITDA ÷ revenue | Overheads grew faster than sales. |
| Net margin | net profit ÷ revenue | Any of the above, plus financing costs and tax. |
Swipe the table sideways to see every column.
Then compare. A P&L on its own says little; next to the previous month, the same month last year and your plan it shows a direction. Look at the lines that moved most as a share of revenue, not in euros, because euros grow with sales anyway.
Analyse it in four questions
- Is revenue growing from more orders or bigger orders?
Split revenue into orders and average order value. Growth from discounts shows up as falling gross margin.
- Did gross margin hold?
If it fell, find the product or cost line that moved: refunds, a supplier, a carrier, a promotion.
- What did marketing cost per euro of contribution?
Compare ad spend with contribution. Campaign by campaign, POAS shows which ones earn their spend back.
- Are overheads in proportion?
Overheads should grow slower than revenue. If they do not, the store gets bigger without getting more profitable.
What affects the P&L that the shop dashboard does not show
Shop dashboards report sales well and costs poorly. Several lines that decide the bottom line live outside the shop system:
- Product costs that change. A new supplier price, a tariff or a currency move changes cost of goods from one batch to the next. A single cost per product, entered once, drifts out of date.
- Shipping you pay versus shipping you charge. The carrier invoice arrives later and per parcel; the shop only knows what the customer paid.
- Fees. Payment, currency conversion, marketplace and app fees each look small and together often take several percent of revenue.
- Ad spend. It sits in each ad platform, in its own currency and time zone.
- Returns after the period. An order sold in October and refunded in November lowers November's net sales, unless you assign refunds to the month of the original order. Decide which and keep to it.
Common mistakes when you set up a P&L
- Revenue without refunds. Gross sales overstate what you keep. Always subtract refunds and returns.
- Fees left out. Payment, marketplace, currency and app fees add up; put each in its own line so you see when one grows.
- Personal and business spending mixed. One business account and one business card keep the statement clean.
- Outdated product costs. Update cost of goods when a supplier, tariff or exchange rate changes, with the date it applies from.
- Marketing as one lump. Ad spend is often the largest variable cost; split it per platform so the P&L shows where it went.
- Small recurring costs forgotten. Ten apps at €29 a month are €3,480 a year.
- VAT counted as revenue. Tax you collect for the government is not yours; leaving it in inflates revenue and margins.
- Looking only at revenue. A store that grows revenue while net margin falls is buying growth with its profit.
The year-to-date P&L
A year-to-date (YTD) statement adds up every month from the start of the financial year to today. It answers "how is the year going?" where a monthly statement answers "how was last month?". Seasonal stores need both: a weak February says little on its own, a year-to-date result behind last year's says a lot.
| Line | October | YTD Jan–Oct | YTD last year |
|---|---|---|---|
| Revenue | €58,000 | €486,000 | €431,000 |
| Gross profit | €34,400 | €282,000 | €254,000 |
| Contribution margin | €18,800 | €146,000 | €142,000 |
| Net profit | €5,250 | €38,900 | €44,100 |
Swipe the table sideways to see every column.
Read a YTD statement against the same period last year and against your plan, line by line. A gap that keeps growing month after month is a trend, not a bad month. To build one, add the monthly statements together; never annualise one month, because seasonality breaks the extrapolation.
Templates: spreadsheet or automated
A spreadsheet works for a first P&L: one column per month, one row per line above, formulas for the subtotals and a percentage-of-revenue column next to each. It stays correct as long as someone re-enters the numbers every month from five or more sources.
| Spreadsheet | Automated (P&L from connected data) | |
|---|---|---|
| Effort each month | Export, paste and check every source | None once costs are set up |
| How current | As of the last update | Updated as orders, refunds and spend arrive |
| Product costs | One cost per product, updated by hand | Per variant, with the date a new cost applies from |
| Drill-down | Separate sheets | Per product, order, campaign and channel |
| Risk | Copy errors and stale rows | Costs that were never entered show as missing |
Swipe the table sideways to see every column.
Whichever you use, your accountant's year-end statement remains the official one. A management P&L is for running the store week to week; it can include estimates (an expected refund rate, a monthly tax provision) that the accounts do not.
How to keep the P&L current in ROASaurus
ROASaurus builds the P&L from the shop's orders and refunds, the product costs you enter or sync, shipping and fee rules, ad spend imported from the ad platforms, and the overheads you add. It updates as new orders come in, so the statement for this month is always the one so far.
Profit › P&L- Connect your store and the ad accounts you spend on; ad spend is imported per day.
- Enter product costs under Settings › Costs › Product costs (or let Shopify's cost per item fill them), and set shipping rules and payment fees under Settings › Costs.
- Add overheads such as staff, software and rent as monthly costs, so the statement reaches EBITDA and net profit.
- Open Profit › P&L and choose by day or by month. Switch between Total, New vs returning customers and One-time vs subscription, and show amounts, % of sales or both.
- Export CSV for your accountant or a spreadsheet; the same rows come along.

The statement runs from gross sales through net sales, revenue, cost of goods, handling, shipping, order and transaction fees, gross profit, ad spend, marketing costs, contribution margin, operating expenses, EBITDA and net profit, with CM1 to CM3 and net margin underneath.
Start freeOpen the live demo14-day trial of every feature, no credit card.
What to do with the P&L each month
- Close the month
Check that every cost source is in: carrier invoices, fees, ad spend, overheads. Fix product costs that are missing.
- Compare
Put the month next to the previous one and the same month last year, as a share of revenue.
- Pick the line that moved most
Drill into it: which products, which campaigns, which carrier.
- Decide one change
A price, a supplier, a campaign budget, a cancelled tool. Write it down and check its effect in next month's P&L.