Skip to content

Lesson 41 of 92 · Free Excel Course

Excel

Profit and Loss Statement in Excel: P&L, Balance Sheet and Cash Flow (Free Template)

Build a small-business P&L in Excel with margins, a balance sheet with a Balanced check, and a cash flow statement linked to both. Free template.

Three reports tell you how a business is really doing: the profit and loss statement (did we make money?), the balance sheet (what do we own and owe?) and the cash flow statement (where did the cash go?). In this project you'll build all three in Excel for a small coffee shop, Corner Coffee Co., over October to December 2026, and link them with formulas so that one change flows through everything. Two check cells turn green when the numbers tie out and red, with the exact difference, when they don't. The download has the finished statements, a blank template and a practice sheet.

The three statements in plain English

The U.S. Securities and Exchange Commission's Beginners' Guide to Financial Statements explains these three (plus a statement of shareholders' equity, which this project leaves out), and our layout follows its order:

StatementCoversAnswersEnds with
Profit and loss (P&L, also called the income statement)A period: a month, quarter or yearDid we make a profit?Net income
Balance sheetOne dateWhat do we own and owe?Assets = liabilities + equity
Cash flow statementA periodWhere did cash come from and go?Ending cash
  • Revenue is money earned from sales. Cost of goods sold (COGS) is what the things you sold cost you (coffee beans, milk, cups). Gross profit is revenue minus COGS.
  • Operating expenses keep the business running (rent, wages, marketing). Take them away and you get operating income. Take away interest (and income tax, where the business pays it) and you get net income, the bottom line.
  • Assets are what the business owns. Current assets are expected to turn into cash within a year (cash, money customers owe you, inventory). Liabilities are what it owes. Equity is what's left for the owner: money put in plus profits kept.

They link up: net income from the P&L adds to equity on the balance sheet, and the cash flow statement explains how the balance-sheet cash changed. The SBA calls the balance sheet the foundation of managing your finances.

Step 1: set up the P&L layout

  1. Open a blank workbook (Ctrl+N). In A1 type the business name and in A2 the period.
  2. In row 4 type the headings: Profit and loss, Oct 2026, Nov 2026, Dec 2026, Quarter.
  3. Type the revenue lines in A5:A6 (Drink sales, Food sales), Total revenue in A7, Cost of goods sold (COGS) in A8, Gross profit in A9 and Gross margin in A10.
  4. Type "Operating expenses" in A11, the six expense lines in A12:A17, then Total operating expenses, Operating income, Interest expense, Net income and Net profit margin in A18:A22.
  5. Type the monthly amounts for revenue, COGS, expenses and interest in columns B to D.
  6. In E5 type =SUM(B5:D5) and copy it to every Quarter cell that holds an amount.
  7. Select B5:E21 and press Ctrl+Shift+$ for currency, then click Decrease Decimal (Home tab) twice for whole dollars, as in the template.

Keep labels in column A and one period per column. That layout makes every formula copy across cleanly. Add a column per month if you want a full year.

Step 2: gross profit and margins

  1. Total revenue: in B7 type =SUM(B5:B6). October is $18,000.
  2. Gross profit: in B9 type =B7-B8. October: $18,000 − $5,760 = $12,240.
  3. Gross margin: in B10 type =IFERROR(B9/B7,0) and press Ctrl+Shift+%. Increase the decimals once to show 68.0%. IFERROR keeps an empty month at 0 instead of #DIV/0!.
  4. Select B7:B10 and drag the fill handle across to E. The quarter's gross margin is 69.0%.

Gross margin says how much of every sales dollar is left after paying for what you sold. At 68%, each $1.00 of coffee leaves 68 cents for rent, wages and profit. Percentages has more on percent formulas.

Step 3: operating expenses and net income

  1. Total operating expenses: in B18 type =SUM(B12:B17).
  2. Operating income: in B19 type =B9-B18.
  3. Net income: in B21 type =B19-B20 (operating income minus interest on the bank loan).
  4. Net profit margin: in B22 type =IFERROR(B21/B7,0) as a percentage.
  5. Copy B18:B22 across to E.
E21=E19-E20
ABCDE
4Profit and lossOct 2026Nov 2026Dec 2026Quarter
5Drink sales$14,000$15,000$18,500$47,500
6Food sales$4,000$4,500$5,500$14,000
7Total revenue$18,000$19,500$24,000$61,500
8Cost of goods sold (COGS)$5,760$5,850$7,440$19,050
9Gross profit$12,240$13,650$16,560$42,450
10Gross margin68.0%70.0%69.0%69.0%
11Operating expenses
12Rent$3,000$3,000$3,000$9,000
13Wages$6,500$6,800$8,200$21,500
14Utilities$600$650$720$1,970
15Marketing$400$300$900$1,600
16Supplies & other$350$380$420$1,150
17Depreciation$200$200$200$600
18Total operating expenses$11,050$11,330$13,440$35,820
19Operating income$1,190$2,320$3,120$6,630
20Interest expense$60$58$56$174
21Net income$1,130$2,262$3,064$6,456
22Net profit margin6.3%11.6%12.8%10.5%
The finished P&L (A4:E22). The quarter's net income is $6,456, 10.5% of revenue.

Depreciation ($200 a month) is in the expenses: it spreads the cost of the espresso machine and other equipment over the years you use it. It lowers profit but doesn't use cash, which matters in Step 6. We stop at net income before income tax, because how tax applies depends on your business type; that's a question for your accountant.

Revenue and net income by month$0$5,000$10K$15K$20K$25KOct 2026Nov 2026Dec 2026Amount ($)MonthTotal revenueNet income
Revenue and net income by month
MonthTotal revenueNet income
Oct 2026$18,000$1,130
Nov 2026$19,500$2,262
Dec 2026$24,000$3,064
Sales grew 33% from October to December, and profit grew faster, because rent stays the same.

Step 4: a balance sheet that balances

Below the P&L, in row 24, type Balance sheet, Sep 30, 2026 (opening) and Dec 31, 2026 (closing). Then:

  1. Current assets: Cash, Accounts receivable (catering customers who haven't paid yet) and Inventory in rows 25 to 27, and Total current assets in B28: =SUM(B25:B27).
  2. Equipment: Equipment (at cost) in row 29, Less accumulated depreciation in row 30 as a negative number, and Net equipment in B31: =B29+B30.
  3. Total assets: in B32 type =B28+B31.
  4. Liabilities: Accounts payable (unpaid supplier bills) and Bank loan in rows 33 and 34, and Total liabilities in B35: =B33+B34.
  5. Equity: Owner's capital and Retained earnings (profit kept in the business) in rows 36 and 37, Total equity in B38: =B36+B37, and Total liabilities and equity in B39: =B35+B38.
  6. Link the closing column to the P&L. In C30 type =B30-E17 (opening depreciation minus this quarter's $600). In C37 type =B37+E21+B52: opening retained earnings, plus the quarter's net income, plus owner draws from the cash flow statement (typed as a minus number, −$2,000).
  7. Copy the totals from column B to column C.

Every other closing number (cash, receivables, inventory, equipment, payables, loan) comes from your records: the bank statement, unpaid invoices, a stock count and the loan statement.

Step 5: add the "Balanced" check cell

In B40 type:

=IF(ROUND(B32-B39,2)=0,"Balanced","Off by "&TEXT(B32-B39,"$#,##0.00"))

Copy it to C40. If assets minus liabilities and equity is zero, it says Balanced. If not, it shows the gap, such as "Off by -$156.00". ROUND stops a tiny decimal leftover from showing as a false alarm, and TEXT formats the difference as dollars.

Now make it green or red:

  1. Select B40:C40.
  2. Go to Home > Conditional Formatting > New Rule > Use a formula to determine which cells to format.
  3. Type =B40="Balanced", click Format, choose a light green fill and dark green text, and click OK twice.
  4. Add a second rule the same way with =AND(B40<>"",B40<>"Balanced") and a light red fill.

On a Mac, in the New Rule box, change Style to Classic first, then choose the formula option. In Excel for the web, New Rule opens a pane: pick Formula as the rule type, type the formula and click Done. Conditional formatting explains formula rules.

C40=IF(ROUND(C32-C39,2)=0,"Balanced","Off by "&TEXT(C32-C39,"$#,##0.00"))
ABC
24Balance sheetSep 30, 2026Dec 31, 2026
25Cash$8,500$9,156
26Accounts receivable$1,200$1,800
27Inventory$2,500$2,900
28Total current assets$12,200$13,856
29Equipment (at cost)$24,000$27,000
30Less accumulated depreciation-$4,800-$5,400
31Net equipment$19,200$21,600
32Total assets$31,400$35,456
33Accounts payable$1,800$2,300
34Bank loan$12,000$11,100
35Total liabilities$13,800$13,400
36Owner's capital$10,000$10,000
37Retained earnings$7,600$12,056
38Total equity$17,600$22,056
39Total liabilities and equity$31,400$35,456
40Check (assets = liabilities + equity)BalancedBalanced
Both dates balance: $35,456 of assets = $13,400 owed + $22,056 equity. Retained earnings grew by $6,456 profit minus $2,000 of owner draws.

Step 6: the cash flow statement, linked to both

Corner Coffee made $6,456 of profit but cash only rose $656. The cash flow statement explains why. This is the indirect method, the common one: start with net income and adjust it to cash. In row 42 type Cash flow statement and Oct to Dec 2026, then:

  1. Net income: B43 =E21.
  2. Add back depreciation: B44 =E17. It reduced profit but no cash left the bank.
  3. Change in accounts receivable: B45 =B26-C26. Customers owe $600 more, so that's $600 of sales not yet collected (−$600).
  4. Change in inventory: B46 =B27-C27. Extra stock on the shelf used $400 of cash.
  5. Change in accounts payable: B47 =C33-B33. Unpaid supplier bills rose $500, so that cash is still in the bank (+$500).
  6. Cash from operating activities: B48 =SUM(B43:B47) = $6,556.
  7. Investing: B49 =B29-C29 (a new $3,000 grinder) and B50 =B49.
  8. Financing: B51 =C34-B34 (−$900 of loan paid off), type −2000 in B52 for owner draws, and B53 =SUM(B51:B52) = −$2,900.
  9. Ending cash: B54 =B48+B50+B53 (net change, $656), B55 =B25 (opening cash) and B56 =B55+B54 = $9,156.
B57=IF(ROUND(B56-C25,2)=0,"Matches balance sheet","Off by "&TEXT(B56-C25,"$#,##0.00"))
AB
42Cash flow statementOct to Dec 2026
43Net income$6,456
44Add back depreciation$600
45Change in accounts receivable-$600
46Change in inventory-$400
47Change in accounts payable$500
48Cash from operating activities$6,556
49Equipment purchased-$3,000
50Cash from investing activities-$3,000
51Loan repaid (change in loan)-$900
52Owner draws (type as a minus)-$2,000
53Cash from financing activities-$2,900
54Net change in cash$656
55Opening cash$8,500
56Ending cash$9,156
57Check (ending cash = balance-sheet cash)Matches balance sheet
Ending cash of $9,156 matches the bank balance typed into the balance sheet (C25), so the three statements agree.

The last check, in B57, compares the calculated ending cash with the real bank balance on the balance sheet: =IF(ROUND(B56-C25,2)=0,"Matches balance sheet","Off by "&TEXT(B56-C25,"$#,##0.00")). Give it the same green and red rules. To test both checks, type 9000 in C25: they turn red and show the $156 gap. Put 9156 back.

Use the blank template

The Blank template sheet has every formula and check but no numbers. Type your own figures in the yellow cells, rename the lines to fit your business, and insert rows inside a section (not below the total) so the SUM ranges grow with them. For one of Microsoft's designs instead, go to File > New and search for "profit and loss" or "balance sheet"; they look polished, but they aren't linked to each other.

Billing customers comes next in this course: Project: accounting and bookkeeping builds an invoice and an income and expense ledger, which is where your P&L numbers come from. For household money, see Project: build a budget.

Try it yourself

Download the practice workbook. The Practice sheet has Corner Coffee's numbers typed in and yellow cells for your formulas.

  1. Quarter totals with SUM, then total revenue, gross profit and gross margin (October 68.0%).
  2. Operating expenses, operating income, net income and net profit margin (quarter $6,456, 10.5%).
  3. Balance sheet totals, plus the two linked cells C30 and C37 (total assets $35,456).
  4. The Balanced check in B40:C40 with green and red rules.
  5. The cash flow statement down to ending cash ($9,156) and the check in B57.
  6. Type 9000 in C25 and watch both checks turn red, then undo it.

Compare your work with the Answers sheet.

Common mistakes

  • Forgetting to move profit into equity. If retained earnings doesn't include net income, the balance sheet is off by exactly the profit.
  • Leaving out owner draws. Money the owner takes out lowers both cash and equity. Miss it and the cash check fails.
  • Wrong signs. Accumulated depreciation is negative when you add it; a rise in receivables or inventory is negative cash.
  • Mixing periods. The P&L and cash flow cover the quarter; the balance sheet is one date. Use the quarter column (E), not one month, in the cash flow.
  • Typing totals. A typed total won't change when a line does. Always use =SUM.
  • Treating profit as cash. A profitable month can still leave the bank account short. Watch the cash flow statement too.

You've built a P&L, a balance sheet and a cash flow statement that link together and check themselves, using SUM, IF, ROUND, TEXT, IFERROR and conditional formatting. Before this, you pulled numbers into a one-page view in Project: dashboard. Next, draw fishbone charts, decision trees and flowcharts in Diagrams in Excel.

Frequently asked questions

How do I make a profit and loss statement in Excel?

List your revenue lines at the top, then cost of goods sold, then operating expenses, with one column per month. Use `=SUM` for totals, subtract COGS from revenue for gross profit, subtract operating expenses for operating income, and subtract interest for net income. Add a Quarter or Year column with `=SUM(B5:D5)`. Our free template has it all built.

Is an income statement the same as a profit and loss statement?

Yes. Profit and loss statement, P&L, income statement and statement of operations are names for the same report: revenue minus expenses over a period, such as a month or a year, ending in net income (profit) or a net loss.

What's the difference between a P&L, a balance sheet and a cash flow statement?

The P&L shows whether you made a profit over a period. The balance sheet is a snapshot on one date of what the business owns (assets), owes (liabilities) and what's left for the owner (equity). The cash flow statement shows where cash actually came from and went during the period, which is why profit and cash are often different.

How do I calculate gross margin and net profit margin in Excel?

Divide the profit by revenue and format the cell as a percentage. Gross margin is `=IFERROR(B9/B7,0)` (gross profit ÷ revenue) and net profit margin is `=IFERROR(B21/B7,0)` (net income ÷ revenue). Press Ctrl+Shift+% for Percent Style. IFERROR shows 0 instead of `#DIV/0!` for a month with no sales yet.

Why doesn't my balance sheet balance?

Usually one of four things: net income wasn't added to retained earnings, owner draws or dividends weren't taken out, a number was typed with the wrong sign (accumulated depreciation must be negative if you add it), or a total skips a row. A check cell such as `=IF(ROUND(B32-B39,2)=0,"Balanced","Off by "&TEXT(B32-B39,"$#,##0.00"))` shows the exact difference, which often points straight at the missing number.

Does Excel have a profit and loss template?

Yes. Go to File > New, type profit and loss (or balance sheet, cash flow) in the search box, pick a template and click Create. Microsoft's templates are good starting points, but they're usually not linked to each other. This lesson's template links all three statements and checks itself.