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.

Updated · 10 min read

By the ROASaurus team

The short answer
  • 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.

StatementQuestion it answersCovers
Profit and loss (income statement)Did we make money?A period (this month, this year)
Balance sheetWhat do we own and owe?One moment (31 December)
Cash flow statementWhere did the cash go?A period, counting cash in and out
Stock bought in bulk lowers your cash but is not a cost on the P&L until the products are sold.

Swipe the table sideways to see every column.

What you need before you start

Gather for the period
  • 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

  1. 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.

  2. 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.

  3. 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.

  4. Contribution margin

    Subtract ad spend and other marketing costs. Contribution is what the orders left to pay for the business itself.

  5. Operating profit (EBITDA)

    Subtract overheads: staff, rent, software, professional fees. Add other operating income such as a supplier rebate.

  6. Net profit

    Subtract depreciation, interest and income tax. What remains is the bottom line: the profit or loss of the period.

Net profit=net sales − order costs − marketing − overheads − interest, depreciation and tax
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.

P&L for October, ROASaurus Demo StoreSample data
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
Example data for a fictional store. Percentages are of revenue (€58,000). VAT collected is left out of revenue.

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.

MarginFormulaWhat a drop usually means
Gross margingross profit ÷ revenueSupplier prices rose, discounts grew, shipping got dearer, or the product mix moved to cheaper items.
Contribution margincontribution ÷ revenueAds got more expensive per order, or campaigns bring orders with a thin margin.
Operating marginEBITDA ÷ revenueOverheads grew faster than sales.
Net marginnet profit ÷ revenueAny 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

  1. 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.

  2. Did gross margin hold?

    If it fell, find the product or cost line that moved: refunds, a supplier, a carrier, a promotion.

  3. What did marketing cost per euro of contribution?

    Compare ad spend with contribution. Campaign by campaign, POAS shows which ones earn their spend back.

  4. 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.

LineOctoberYTD Jan–OctYTD 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
Example data for the fictional ROASaurus Demo Store. Revenue is up 12.8% on last year, net profit down 11.8%: growth was bought with marketing and overheads.

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.

SpreadsheetAutomated (P&L from connected data)
Effort each monthExport, paste and check every sourceNone once costs are set up
How currentAs of the last updateUpdated as orders, refunds and spend arrive
Product costsOne cost per product, updated by handPer variant, with the date a new cost applies from
Drill-downSeparate sheetsPer product, order, campaign and channel
RiskCopy errors and stale rowsCosts 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.

In ROASaurusProfit › P&L
  1. Connect your store and the ad accounts you spend on; ad spend is imported per day.
  2. 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.
  3. Add overheads such as staff, software and rent as monthly costs, so the statement reaches EBITDA and net profit.
  4. 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.
  5. Export CSV for your accountant or a spreadsheet; the same rows come along.
The ROASaurus Mac app showing Profit › P&L: orders, gross sales, discounts, returns, net sales, costs, gross profit and contribution margin. Fictional demo store, simulated data.
The ROASaurus iPhone app showing Profit › P&L: orders, gross sales, discounts, returns, net sales, costs, gross profit and contribution margin. Fictional demo store, simulated data.
Profit › P&L: sales, costs and profit per day, as amounts or as a share of sales. Fictional demo store, simulated data.

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

  1. Close the month

    Check that every cost source is in: carrier invoices, fees, ad spend, overheads. Fix product costs that are missing.

  2. Compare

    Put the month next to the previous one and the same month last year, as a share of revenue.

  3. Pick the line that moved most

    Drill into it: which products, which campaigns, which carrier.

  4. 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.

More guides on profit and finance · All guides

FAQ

Questions, answered

More answers in the FAQ and the help center.

What is a profit and loss statement for ecommerce?

A report of a webshop's revenue and costs for a period, from gross sales through cost of goods, fulfilment, fees, marketing and overheads, ending with net profit or loss.

What does PnL mean in business?

Profit and loss. A PnL or P&L statement shows whether a business made or lost money in a period. It is also called the income statement.

Is PnL your profit?

The P&L is the statement; its last line, net profit, is your profit. Lines above it, such as gross profit and contribution margin, show the profit at each earlier step.

Can I create my own P&L statement?

Yes. List revenue, subtract discounts and refunds, then cost of goods, order costs, marketing and overheads for the same period. A spreadsheet with one column per month is enough to start.

Can you make a profit and loss statement in Excel or Google Sheets?

Yes: one row per line, one column per month, formulas for the subtotals and a column with each line as a share of revenue. The work is re-entering the numbers from every source each month.

How often should a webshop make a P&L?

Monthly at least, with a year-to-date column. Stores that spend heavily on ads benefit from a weekly or daily view of contribution margin.

Does Shopify have a profit and loss report?

Shopify's reports show sales, discounts, returns and, on some plans, gross profit from the cost per item you enter. They do not include ad spend, most fees or overheads, so they stop well before net profit.

What is the difference between a P&L and a balance sheet?

The P&L covers a period and shows profit; the balance sheet shows what the business owns and owes on one date. Stock bought counts on the balance sheet until it is sold.

What is a year-to-date P&L?

The sum of every month from the start of the financial year to today. Compare it with the same period last year to see how the year is going.

Every sale, traced to the ad that earned it

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