ProSheet Studio

Profit and Loss Template for Google Sheets: Layout, Formulas and a Worked Example

By Roger Ramey· Updated · 8 min read· Every number shows its working

Short answer

A profit and loss template in Google Sheets needs five lines: revenue, minus cost of goods sold (direct costs) = gross profit, minus operating expenses = operating profit, minus tax = net profit. Example month: $18,500.00 revenue, $5,200.00 direct costs and $8,400.00 overhead give $4,900.00 operating profit, a 26.49% margin.

On this page
  1. What's the best format for a P&L?
  2. Try the P&L calculator (free, no signup)
  3. Worked example: a service business P&L for one month
  4. Monthly vs year-to-date P&L in Google Sheets
  5. How to make a profit and loss spreadsheet step by step
  6. The common mistake: margin vs markup (and other P&L errors)
  7. Profit is not cash: why the P&L needs a cash view
  8. Free template vs paid P&L template vs accounting software
  9. Step-by-step
  10. FAQ

What's the best format for a P&L?

For a small business, the best format is a single-step-per-line statement: revenue at the top, direct costs, gross profit, operating expenses grouped into 8 to 15 categories, operating profit, then tax and net profit. Months run across as columns with a year-to-date column at the end.

Standard small business P&L rows
RowWhat goes in itFormula
RevenueSales invoiced or received in the monthSum of income lines
Cost of goods sold (direct costs)Materials, subcontractors, direct labour, job-specific costsSum of direct cost lines
Gross profitWhat the work itself earnsRevenue - COGS
Operating expensesRent, insurance, software, vehicles, marketing, office wagesSum of overhead lines
Operating profitWhat overhead leavesGross profit - operating expenses
Tax (or tax reserve)Estimated income tax on profitOperating profit x rate
Net profitWhat the business keepsOperating profit - tax

Template galleries (Smartsheet, Microsoft, Template.net) offer dozens of variations of this layout. The format matters less than two habits: put every cost in exactly one row, and let formulas, not typing, fill the totals. I build spreadsheet math; I am not an accountant, and this is not tax or financial advice.

Try the P&L calculator (free, no signup)

Enter one month's revenue, direct costs and operating expenses. The calculator returns gross profit, operating profit and each margin, using the same math as the worked example.

Worked example: a service business P&L for one month

With $18,500.00 of revenue, $5,200.00 of direct costs and $8,400.00 of operating expenses, the month shows $13,300.00 gross profit and $4,900.00 operating profit. All figures are assumptions for illustration; replace each with your own.

Worked example: March for an example service business (assumed figures, no tax line).

Inputs (assumptions — replace with your own) and results
ItemValue
Tax reserve % (input)0%
Revenue (input)$18,500.00
Cost of goods / direct costs (input)$5,200.00
Operating expenses (input)$8,400.00
Gross profit$13,300.00
Gross margin71.89%
Operating profit$4,900.00
Operating margin26.49%
Tax$0.00
Net profit$4,900.00
Net margin26.49%

Computed with the same formulas as the free calculators on this site. Change any input in the calculator above to see your own numbers.

For a service business, direct costs are what you would not spend if the job did not happen: subcontractors, job materials, fuel for the job, and the wages of the people doing the work. Rent, the phone plan and the accounting software are operating expenses, because they arrive whether or not you work that week.

If you set money aside for tax, show it. With an assumed 25% reserve (a placeholder; your rate depends on your structure and income) the month's net profit falls to $3,675.00:

Worked example: Same month with a 25% tax reserve set aside from operating profit (assumed rate, not advice).

Inputs (assumptions — replace with your own) and results
ItemValue
Tax reserve % (input)25%
Revenue (input)$18,500.00
Cost of goods / direct costs (input)$5,200.00
Operating expenses (input)$8,400.00
Gross profit$13,300.00
Gross margin71.89%
Operating profit$4,900.00
Operating margin26.49%
Tax$1,225.00
Net profit$3,675.00
Net margin19.86%

Computed with the same formulas as the free calculators on this site. Change any input in the calculator above to see your own numbers.

Monthly vs year-to-date P&L in Google Sheets

Put each month in its own column and add a YTD column that sums the months. Then calculate YTD margins from the YTD totals. Averaging the three monthly margins gives the wrong answer whenever revenue changes from month to month.

Example first quarter, month by month and year to date (assumed figures)
LineJanFebMarYTD
Revenue$15,200$16,900$18,500$50,600
Direct costs$4,300$4,800$5,200$14,300
Gross profit$10,900$12,100$13,300$36,300
Operating expenses$8,100$8,250$8,400$24,750
Operating profit$2,800$3,850$4,900$11,550
Gross margin71.71%71.6%71.89%71.74%
Operating margin18.42%22.78%26.49%22.83%

Gross margin barely moved across the quarter, but operating margin rose from 18.42% to 26.49% because revenue grew faster than overhead. That is the story a P&L exists to tell, and it only shows up when overhead has its own row.

How to make a profit and loss spreadsheet step by step

Build a transaction tab, a category list and a P&L tab that totals the transactions by category and month. It takes under an hour and the formulas below do the rest.

  1. On a tab called Tx, add columns: Date (A), Description (B), Category (C), Amount (D).
  2. On a tab called Cats, list each category and whether it is Revenue, COGS or Opex.
  3. On the P&L tab, put category names down column A and the first day of each month across row 1.
  4. Fill the grid with SUMIFS, then add subtotal rows for revenue, COGS and opex.
  5. Add gross profit, operating profit and margin rows as formulas.
  6. Add the YTD column last.

Monthly total for a category

=SUMIFS(Tx!$D:$D,Tx!$C:$C,$A5,Tx!$A:$A,">="&B$1,Tx!$A:$A,"<"&EDATE(B$1,1))

Tx tab: A = date, C = category, D = amount. P&L tab: A5 = category, B1 = first day of the month. Works in Google Sheets and Excel.

Gross profit

=B10-B20

B10 = total revenue row, B20 = total COGS row.

Gross margin %

=IFERROR(B21/B10,0)

B21 = gross profit. Format as a percentage. Returns 71.89% for the example month.

Operating profit

=B21-B35

B35 = total operating expenses row.

YTD total

=SUM(B10:M10)

Months in B to M. Calculate YTD margin as YTD profit / YTD revenue, not as an average of monthly margins.

The common mistake: margin vs markup (and other P&L errors)

The most common P&L error is reading a markup as a margin. A job priced at cost plus 40% does not earn a 40% margin; it earns 28.57%. Your P&L reports margin, so if you quote with markup, the statement will always look worse than the quote did.

The markup vs margin calculator guide shows that conversion step by step. Other errors that make a P&L lie:

Profit is not cash: why the P&L needs a cash view

A P&L can show profit while the bank balance falls, because invoices are unpaid, equipment was bought, or loan principal went out. None of those change profit, all of them change cash.

If customers pay 30 days after the invoice, March's $18,500.00 of revenue may land in April. That is why a P&L template should sit next to a running cash position. The cash flow forecast template guide walks through a six-month example where profit and cash differ by thousands, and the break-even calculator for small business guide turns the operating-expense row into the number of jobs you need each month.

Free template vs paid P&L template vs accounting software

A free spreadsheet you build suits a business with a few dozen transactions a month and an owner who wants to see every formula. Accounting software suits a business that needs bank feeds, invoicing and an accountant working in the same file. A paid template skips the build but keeps the transparency.

Ways to keep a small business P&L
OptionSuitsWatch for
Build from this guideLow transaction volume, hands-on ownerYour time to build and check it
Free gallery templateA quick layoutOften a static form without transaction tabs
Paid spreadsheet templateReady layout with P&L and cash viewManual entry
Accounting softwareBank feeds, invoicing, payrollMonthly subscription

Small Business P&L + Cash Flow Tracker

The spreadsheet version of this guide for Excel & Google Sheets: type your numbers into the highlighted cells and the formulas do the rest. One-time $14.99, no subscription, instant download.

See the Small Business P&L + Cash Flow Tracker →Buy now — $14.99All 7 templates — $49

Instant access by email after checkout via Payhip.

The small business P&L template is $14.99 one-time for Google Sheets and Excel. It tracks revenue, COGS, gross profit and margin, operating expenses and net profit, and adds break-even revenue and a running cash position. It is also part of the $49 Complete Toolkit of seven templates. See the profit and loss spreadsheet page for the short demo.

Step-by-step: Profit and Loss Template for Google Sheets: Layout, Formulas and a Worked Example

  1. List your categories. Write every income and cost category and tag each one Revenue, COGS (direct cost) or Opex (overhead).
  2. Log transactions. On a transaction tab, record date, description, category and amount for every sale and expense.
  3. Total by month. On the P&L tab, use SUMIFS to total each category for each month column.
  4. Add subtotal rows. Revenue minus COGS gives gross profit; gross profit minus opex gives operating profit; subtract tax for net profit.
  5. Add margins. Divide gross, operating and net profit by revenue, wrapped in IFERROR so empty months show 0%.
  6. Add YTD. Sum the month columns for YTD totals, then calculate YTD margins from those totals.

Skip the setup: Small Business P&L + Cash Flow Tracker

The spreadsheet version of this guide for Excel & Google Sheets: type your numbers into the highlighted cells and the formulas do the rest. One-time $14.99, no subscription, instant download.

See the Small Business P&L + Cash Flow Tracker →Buy now — $14.99All 7 templates — $49

Instant access by email after checkout via Payhip.

Frequently asked questions

How do I make a profit and loss spreadsheet?

Create a transaction tab (date, description, category, amount), a category list tagged revenue, direct cost or overhead, and a P&L tab with months across the top. Use SUMIFS to total each category per month, then subtract: revenue minus COGS is gross profit, minus operating expenses is operating profit.

How to create a simple P&L?

List total revenue for the period, subtract direct costs to get gross profit, subtract operating expenses to get operating profit, then subtract tax for net profit. Example: $18,500 revenue, $5,200 direct costs and $8,400 overhead give $4,900 operating profit. Five lines and one subtraction each.

Can I create my own P&L statement?

Yes. A small business can build its own P&L in Google Sheets or Excel with a transaction log and SUMIFS formulas. Keep each cost in one category, calculate margins from totals, and have an accountant review it before you rely on it for tax filings. This is not tax advice.

Where can I find a free profit and loss statement template?

Template galleries such as Microsoft's and Smartsheet's offer free P&L layouts, and this guide gives the full row structure and working formulas to build one in a blank Google Sheet. Free layouts are often static forms; a build with a transaction tab stays accurate as you add entries.

Does Excel have a P&L template?

Microsoft's online template gallery lists profit and loss statement templates for Excel. Any of them, or the layout in this guide, also opens in Google Sheets. Check that the template has formulas in the subtotal rows rather than typed numbers before you rely on it.

How to get profit and loss in Excel?

Put revenue and cost totals in cells, then subtract. With revenue in B10, direct costs in B20 and operating expenses in B35, gross profit is =B10-B20 and operating profit is =B10-B20-B35. Margin is profit divided by revenue, formatted as a percentage.

What is a good profit margin for a small service business?

There is no single good number; it depends on the trade, pricing and overhead. Track your own gross and operating margins monthly and watch the trend. In this guide's example quarter, operating margin rose from 18.42% to 26.49% as revenue grew faster than overhead.

Can I create a profit and loss statement online for free?

Yes. Google Sheets is free with a Google account, and the formulas in this guide build a working P&L in it. The free calculator on this page also returns gross profit, operating profit and margins for any month without signup.

Roger Ramey
Written by Roger Ramey
I'm not a contractor, landlord or accountant. I build the pricing maths, and every number on this page shows its working so you can check it instead of trusting it. Watch the breakdowns on YouTube →
ProSheet Studio · Templates · Guides · Free calculators · Free spreadsheet · Custom build · Privacy
Pricing maths and templates, not financial, tax or legal advice. Calculators run in your browser; the numbers you type are never sent anywhere.