Can I write off an unpaid invoice? Only if you already paid tax on it.
A bad debt deduction under IRC §166 needs basis in the debt, and basis means you already reported the income. If you bill on the cash method, the $28,000 you never collected is worth $0 on the return, and writing it off in the books does not change that.

A painting contractor finished a commercial job in May, billed the general contractor $28,000 for the final phase, and never got paid. By July the calls stopped going through. In October the general's LLC turned up as administratively dissolved on the state's website. So he asked the question every owner asks while cleaning up the books in December: can I write off an unpaid invoice? Most pages tell him yes. On his return it's worth exactly nothing.
Can I write off an unpaid invoice? Only the part you already reported.
Section 166(a)(1) allows a deduction for any debt that becomes worthless during the year, and §166(b) measures it by the adjusted basis you would use to figure a loss on a sale. An invoice is not basis. You get basis in a receivable two ways: you reported the income, or you handed over cash. Publication 334, which replaced the discontinued Publication 535 for this material, says it plainly. A cash-method business cannot deduct an amount it never included in income.
That covers almost everyone reading this. Section 448(c) lets a business with average annual gross receipts of $32,000,000 or less use the cash method for 2026, a figure set by Rev. Proc. 2025-32, and most small companies file that way. The compensation is that you never paid tax on the $28,000 either. What you are out is what the job cost in labor and materials, and that came off the return when you paid it. There is no second deduction for profit that never arrived.
The same $28,000, three different answers.
You billed it on the cash method. Nothing.
Clean up the books anyway. Just watch what the cleanup does to the return. Writing off a customer balance in QuickBooks posts a bad debt expense, that expense flows into the profit and loss your preparer works from, and on a cash-basis return it has to come back out. The software doesn't know which method you file on, and nobody reconciles that line. That's how a return ends up deducting income it never reported, which is the one version of this that costs real money.
You report on the accrual method. The full $28,000, in the right year.
If the $28,000 sat in 2025 revenue and you paid tax on it, §166(a)(1) gives you the deduction in the year the debt goes worthless. It lands on line 10 of Form 1120-S, line 12 of Form 1065, or in the other expenses of Part V of Schedule C. Partial worthlessness is available here too, with a condition: §166(a)(2) caps it at the amount charged off on your books inside that year, and Treas. Reg. §1.166-3 treats the charge-off as a requirement rather than bookkeeping hygiene. Be clear about what it is, though: you paid tax on that $28,000 a year ago, so getting it back is a recovery, not a win.
You lent the money instead of billing it. $3,000 a year.
Different statute, much worse answer. A loan made by you personally rather than by the business is probably a nonbusiness bad debt under §166(d), and for anyone other than a corporation that is a short-term capital loss instead of an ordinary deduction. Section 1211(b) lets it offset $3,000 of ordinary income a year once capital gains are used up, and §1212(b) carries the rest forward. It also has to be wholly worthless, because §166(d)(1) takes partial worthlessness away from a noncorporate lender.
- Cash-method S corp that billed the $28,000: deduction allowed
- $0
- Cash-method S corp: 2026 tax saved
- $0
- Accrual-method S corp that reported it in 2025: deduction allowed
- $28,000
- Accrual method: taxable income reduced after the 20% QBI haircut
- $22,400
- Accrual method: 2026 tax saved at 24%
- $5,376
- Owner lent the $28,000 personally: 2026 deduction under §1211(b)
- $3,000
- Owner lent it personally: 2026 tax saved at 24%
- $720
- Years to use the remaining $25,000 at $3,000 a year
- 9 more
2026 tax year. A one-owner S corporation in the construction trades, which is not a specified service business under §199A(d)(2), and a shareholder filing jointly with $300,000 of taxable income: the 24% bracket runs from $211,400 to $403,550 for 2026 under Rev. Proc. 2025-32, and that income sits below the $403,500 §199A threshold, so the 20% qualified business income deduction applies at the margin without the W-2 wage cap. The cash method is available because average annual gross receipts are under the §448(c) limit of $32,000,000 for 2026. Federal tax only, no state tax, and no capital gains in the personal-loan case, so §1211(b) caps the 2026 capital loss at $3,000.
Worthless is a fact about a year, not a decision you make in December.
This is where an accrual deduction gets lost. Treas. Reg. §1.166-2 makes worthlessness a question of the surrounding facts, and it does not make you sue: §1.166-2(b) lets you skip legal action when the circumstances show a judgment would be uncollectible anyway. What it wants is an identifiable event inside the year you claim: a dissolution filing, a bankruptcy petition, a certified letter returned undeliverable, a collection agency closing the file. A customer who is merely in trouble is not an event, and the burden of proof is yours.
The Ninth Circuit made the sharper version of the point last year in Kelly v. Commissioner, 139 F.4th 854 (9th Cir. 2025). The taxpayer forgave roughly $87,000,000 of debt and argued that forgiving it proved it was worthless. The court disagreed: discharging a debt does not retroactively strip away the value it had, and the debtors still held assets that year, so some part was collectible. Deciding to stop chasing the money is not the same as the money being gone.
Pick the wrong year and you have unusual room to fix it. The ordinary refund window is three years; §6511(d)(1) gives seven for an overpayment caused by a §166 deduction on a wholly worthless debt. It does not reach partial worthlessness, the same narrow door I pointed at in the crypto theft loss rules.
A promissory note cannot manufacture the deduction.
Owners ask whether having the customer sign a note for the balance turns a dead receivable into something deductible. Mechanically it can, and it still doesn't help. A cash-method creditor who takes a note as payment includes the note's fair market value in income on receipt, and that inclusion is what creates basis. The basis equals the value you reported. A note from a customer about to disappear is worth very little, so you report very little and deduct very little. One from a customer who is good for the money is worth close to face, so you pay tax on $28,000 now for a deduction you'll probably never need. The authority on cash-method notes is old and indirect, which is one more reason not to paper a bad receivable.
So the December work splits by method. On the accrual method, get the charge-off on the books before December 31 and put the evidence in the file the same week, because the deduction belongs to the year the debt died, not the year you got around to it. On the cash method there's nothing to do on the return, and the hour is better spent on a demand letter or a deposit requirement for the next job. The timing instinct behind the question is sound, just pointed at the wrong line: prepaying expenses before year end is the December move that works on a cash-method return.

