How to Build a Profit and Loss Statement in Google Sheets

Written by

in

· Updated

A profit and loss statement (P&L) answers the question every owner asks at the end of the month: did we make money, and where did it go? You don’t need accounting software to get one. A Google Sheet with a transactions tab, a short category list and one SUMIFS formula gives you a monthly P&L that updates itself every time you add a row.

This guide walks through the build step by step, with every formula written out. If you’d rather skip ahead, download the finished template (it opens in Google Sheets and Excel) or use the free P&L builder below to turn a list of transactions into a statement right in your browser.

Free online profit and loss statement builder

Pick the first month, list your categories, enter (or paste) transactions, and the P&L, margins and monthly chart build as you type. It also shows the exact Google Sheets formulas for your period. Click Load example to see the Bluebird Candle Co. numbers used in this article.

1. Your business and period

2. Transactions and categories

DateDescriptionCategoryAmount

Sections: Revenue, COGS, Expense, Other income, Other expense. A line with no section (for example Owner draw) stays off the P&L.

Enter amounts as positive numbers; a refund or return is negative. Your data stays in your browser. Nothing is sent to our server unless you choose to save it to your account.

3. Your profit and loss statement

Revenue and net income by month

RevenueNet incomeNet loss

Google Sheets formulas for this P&L

Made with the free P&L builder at bookkeepingsheets.com

What is a profit and loss statement?

A P&L (also called an income statement) lists what a business earned and what it spent over a period, such as a month, a quarter or a year. It always runs top to bottom in the same order:

  • Revenue − Cost of goods sold = Gross profit
  • Gross profit − Operating expenses = Operating income
  • Operating income + Other income − Other expenses = Net income

Cost of goods sold (COGS) is what you spend to make or buy what you sell: materials, inventory, packaging, direct labor. Operating expenses keep the business running whether you sell one unit or a thousand: rent, software, advertising, insurance. “Other” lines are things outside your main business, such as interest earned on savings or interest paid on a loan. Dividing each profit line by revenue gives you your margins.

A P&L is not a cash report. Owner draws, loan principal payments, transfers between your own accounts and the full price of equipment don’t belong on it (equipment shows up through depreciation instead). Those are the most common reasons a homemade P&L looks wrong.

What’s inside the free template

  • Setup: business name and the first month of your year. The P&L shows 12 months from there.
  • Transactions: 300 rows for date, description, category (dropdown) and amount, plus helper columns for section, month and a Check column that flags missing categories, unknown categories and dates outside the period.
  • Categories: up to 40 categories, each assigned to one of five sections, with a row count, a period total and a warning for duplicates.
  • P&L: each category by month, section totals, gross profit, operating income, net income, margins, a % of revenue column, a check row that proves every transaction landed somewhere, and a net income chart.

To use it in Google Sheets: in Google Drive click New → File upload, open the .xlsx, then File → Save as Google Sheets. The formulas, dropdowns and named ranges carry over. It uses only functions that work the same in Google Sheets, Excel and LibreOffice (SUMIFS, COUNTIFS, INDEX/MATCH, EDATE, EOMONTH, IFERROR).

How to build a P&L in Google Sheets, step by step

Step 1: Make a Transactions tab

Four columns: A Date, B Description, C Category, D Amount. Keep amounts positive for both sales and expenses; the category decides which side of the P&L they land on. A refund or return is a negative number in the same category. If you paste a bank export where expenses are negative, flip them with a helper column (=-D2) or Paste special → values after multiplying by −1.

Step 2: Make a Categories tab

Column A is the section (Revenue, Cost of goods sold, Operating expenses, Other income, Other expenses), column B is the category name. Ten to twenty categories is plenty for most small businesses; our chart of accounts template has a sample list by industry. Then add a dropdown on the Transactions category column: select C2:C, Data → Data validation → Dropdown (from a range), and point it at Categories!B2:B. Dropdowns stop typos like “Advertsing” from quietly dropping off the report.

Step 3: Add a month column

In Transactions F1 type Month, and in F2:

=ARRAYFORMULA(IF(A2:A="", "", DATE(YEAR(A2:A), MONTH(A2:A), 1)))

This turns every date into the first day of its month (Aug 14 → Aug 1), so each P&L cell needs only one month test instead of a “from” and “to” date. ARRAYFORMULA fills the whole column in Google Sheets; in Excel, use =IF(A2="","",DATE(YEAR(A2),MONTH(A2),1)) and copy it down.

Step 4: Lay out the P&L tab and fill it with SUMIFS

Put the first month in B4 (for example 7/1/2026) and =EDATE(B4,1) in C4, copied right for 12 months. List the categories down column A under section headings. Then the one formula that builds the whole statement, in B6:

=SUMIFS(Transactions!$D:$D, Transactions!$C:$C, $A6, Transactions!$F:$F, B$4)

It adds the Amount column where the category matches the row label and the month matches the column header. The dollar signs matter: $A6 locks the column so the category stays put when you copy right, and B$4 locks the row so the month stays put when you copy down. Copy it across the grid and every cell is done. If SUMIFS and mixed references are new to you, our formula guide has practice exercises.

Step 5: Add totals and the three profit lines

Under each section use a plain =SUM(B6:B11). Then the profit lines are simple subtraction between totals. In the template the rows are: total revenue in row 12, total COGS in row 21, gross profit =B12-B21 in row 23, operating income =B23-B45 (gross profit minus total operating expenses), and net income =B47+B55-B62 (operating income plus total other income minus total other expenses). A Total column (=SUM(B6:M6)) on the right finishes the grid.

Step 6: Add margins and a % of revenue column

Gross margin is =IFERROR(B23/B12, ""). IFERROR keeps a month with no sales from showing #DIV/0!. In the last column, divide each line’s total by total revenue with the revenue cell locked (=N6/$N$12) to see what share of every sales dollar goes to each cost. Format both as percentages.

Step 7: Add a check row

The total of all transactions in the period should equal the total of all P&L lines plus anything you intentionally left off (owner draws, transfers). The template does this with =SUMIFS(TAmt, TMon, ">="&PStart, TMon, "<="&PEnd) and prints OK when it ties. If it doesn’t, the Check column on Transactions tells you which row is the problem. This one row catches most P&L errors before anyone else sees them.

Faster option: QUERY (Google Sheets only)

For a quick total by category without building a grid, Google Sheets’ QUERY function can do it in one cell. Dates go in as date 'yyyy-mm-dd':

=QUERY(Transactions!A:D, "select C, sum(D) where A >= date '2026-07-01' and A <= date '2026-09-30' group by C label sum(D) 'Total'", 1)

QUERY is great for a one-off look, but it doesn’t group categories into sections or compute profit lines, and it won’t open in Excel. Use SUMIFS for the statement you’ll keep.

Example: Bluebird Candle Co., July to September 2026

Bluebird sells hand-poured candles online and to a few gift shops. Thirty-seven transactions over three months (Shopify payouts, wholesale invoices, materials, packaging, fees, ads, rent, a $120 refund) produce this P&L:

LineJulAugSepTotal% of revenue
Revenue$8,990$10,920$10,760$30,670100.0%
Cost of goods sold$3,430$4,155$4,550$12,13539.6%
Gross profit$5,560$6,765$6,210$18,53560.4%
Operating expenses$2,164$2,380$2,591$7,13523.3%
Operating income$3,396$4,385$3,619$11,40037.2%
Other income − other expenses−$36−$32−$29−$97−0.3%
Net income$3,360$4,353$3,590$11,30336.9%
Gross margin61.8%62.0%57.7%60.4%

Revenue was almost flat from August to September, yet net income fell about $760. The monthly columns show why: materials rose from $2,890 to $3,140 and packaging from $1,265 to $1,410 while wholesale orders dropped, so gross margin slipped from 62.0% to 57.7%. A single quarterly total would have hidden that. Bluebird’s next move is to check wax prices and its online shipping charges before the holiday rush, and to set a monthly budget to compare against.

One caution about that 36.9% net margin: Bluebird is a sole proprietorship, so the owner’s pay comes out as draws, which are not an expense. Before comparing your margin to a corporation’s, subtract a fair salary for your own time.

SUMIFS, QUERY or a pivot table?

MethodBest forWatch out for
SUMIFS grid (this template)A P&L you keep month after month, with sections, profit lines and marginsNew categories must be added to the category list
QUERYQuick totals by category or month in Google SheetsNo profit lines; doesn’t work in Excel
Pivot table (Insert → Pivot table)Exploring data: by vendor, by month, by categoryHard to add gross profit and margin rows in the right order

Common mistakes

  • Putting owner draws or loan payments on the P&L. They reduce cash, not profit. Only the interest part of a loan payment is an expense.
  • Booking the full price of equipment as an expense. A $4,000 kiln is an asset that you depreciate; see the depreciation calculator.
  • Counting Shopify or Stripe payouts as revenue after fees. If the payout is net of fees, either gross it up and record fees separately or be consistent every month. Otherwise your fee line is understated.
  • Mixing cash and accrual. Date each row when money moved or when you earned or owed it, not both. Our guide to cash vs. accrual accounting shows how much the two can differ.
  • Typing categories by hand. “Software” and “Software ” (with a trailing space) don’t match in SUMIFS, so the row silently drops off the P&L. Use dropdowns and a check row.
  • Text instead of numbers. Amounts pasted from a PDF often come in as text. If a SUMIFS total looks low, check for left-aligned numbers and convert them with Format → Number.

FAQ

Does Google Sheets have a built-in P&L template?

Google’s template gallery changes over time, so check File → New → From template gallery. Whatever you start from, a P&L built from your own transaction list, like the one above, is easier to trust: you can click any number and trace it back to the rows behind it.

Is a P&L the same as an income statement?

Yes. Profit and loss statement, P&L, income statement and statement of operations all mean the same report.

Can I use this P&L for my taxes?

It’s a good starting point. Sole proprietors and single-member LLCs report profit on Schedule C, and if your categories follow its lines (advertising, supplies, rent, utilities and so on) the totals carry over easily. Tax rules such as the 50% limit on business meals and depreciation methods can make taxable profit differ from book profit, so have your tax preparer review it.

How often should I update it?

Monthly, right after you reconcile your bank account. A reconciled month means the transactions on your P&L match what really cleared the bank.

When should I move from a spreadsheet to accounting software?

When you’re entering hundreds of transactions a month, need a balance sheet that ties out, or have employees on payroll. Our Excel vs. QuickBooks vs. Xero calculator compares the yearly cost.

Related templates

This template and guide are for general information and bookkeeping organization only. They are not accounting, tax or legal advice. Check your numbers with a qualified accountant before filing or making financial decisions.