billable.dev

Can a Freelancer Write Off an Unpaid Invoice?

By Mark Fulton · · 10 min read

Last verified:

Can a Freelancer Write Off an Unpaid Invoice?

In the US, if you use the cash method of accounting, which is how most freelancers file, you generally cannot deduct an unpaid invoice. A business bad debt deduction only exists for money you already counted as income, and on the cash method you count income when you are paid. No payment means no income reported, so there is nothing to write off. The loss is real, but it is not a tax deduction. What you can still deduct are the out-of-pocket costs you paid to do the job, and you should close the invoice in your books so the record stays honest.

That answer disappoints people, usually in the week they are already angry about the money. The pages that tell you "yes, you can write off unpaid invoices" are mostly talking about accrual-basis businesses with accounts receivable on their books. A solo developer invoicing from a laptop is almost never in that group.

This post is general information about US federal tax rules, not tax advice. Your accounting method, entity type and state rules can change the answer, so check with a tax professional before you file.

Can you deduct an invoice the client never paid?

Probably not, and the reason is mechanical rather than harsh.

A bad debt deduction cancels out income you previously reported. The IRS says so directly in its Topic no. 453 on bad debt deductions: to deduct a bad debt, you generally must have already included the amount in your income. It then names the exact case you are in. If you are a cash method taxpayer, which it notes is most individuals, you generally can't take a bad debt deduction for unpaid fees and similar items.

Read that as arithmetic. You invoice $3,000. The client never pays. On the cash method you report $0 from that invoice, because no money arrived. If you then deducted $3,000 as a bad debt, you would be subtracting income you never added. The deduction would erase $3,000 of someone else's income, or your other income from other clients, for a sale that never produced any taxable amount.

So the unpaid invoice already did the one favorable thing it could do for your taxes: it never showed up as income. You are not taxed on money you did not receive. That is the whole benefit, and it arrives automatically.

Why does cash vs accrual accounting decide the answer?

Because the two methods disagree about when income exists.

The IRS's Publication 334, Tax Guide for Small Business describes both. On the cash method, you normally report income when you receive payment, and the same publication says you can't take a bad debt deduction for amounts owed to you that you never included in income. On an accrual method, you normally report income as you earn it, and you can take a bad debt deduction for an uncollectible receivable if you included that amount in income.

Here is one invoice run through both methods. The job: a $3,000 fixed-price integration, delivered in October. You spent $200 on hosting and API usage while building it. The client goes silent and the invoice is never paid.

Cash method Accrual method
When the $3,000 counts as income Only when you receive it. Never, in this case When you earn it, which is delivery in October
Income reported from this invoice $0 $3,000
Bad debt deduction when it becomes worthless $0. There is no reported income to reverse Up to $3,000, since you reported the income
The $200 of hosting and API costs Deducted in the year you paid them Deducted as a normal business expense
Net effect of this invoice on your taxable income Minus $200 (the costs) Minus $200 (the $3,000 income and the $3,000 bad debt cancel out)
What you actually lost $3,000 of fee and the $200 you spent The same

The last two rows are the point. Both methods land on the same taxable result, a $200 deduction for the costs. The accrual taxpayer gets there by reporting income and then deducting it. The cash taxpayer gets there by never reporting it. Neither gets a tax break for the $3,000 of lost fee, and the cash taxpayer is not worse off for it.

One more difference worth knowing. An accrual-method freelancer also reports the $3,000 in the year it was earned, and can only take the bad debt deduction in the year the debt becomes worthless. If those are different tax years, the accrual taxpayer can owe tax on income they have not collected before the deduction catches up. That is a cost of the method, and it is one reason most solo freelancers stay on cash.

Which costs from the job can you still deduct?

The ones you paid. Under the cash method, Publication 334 says you generally deduct expenses in the tax year you actually pay them, and that does not depend on whether the client ever pays you.

For a developer, that usually means:

  • Hosting, servers and staging environments you stood up for the project.
  • Metered API and cloud usage billed to you while building and testing it.
  • Software and tool subscriptions you bought or kept active for this client.
  • A subcontractor or a designer you paid to deliver part of the work.
  • Domains, certificates and licenses purchased for the project.

These are ordinary business expenses, and the client's non-payment does not change that. If a cost would have been deductible when the project went well, it is deductible when it did not. Our guide to tax deductions freelance developers often miss covers which of these need receipts and which are easy to forget.

What you cannot deduct is your own time. Your hours were never an expense you paid; they were the thing you were going to be paid for. Cash-method income that never arrived is not income, and unbilled hours are not a cost. This feels unfair, but it is the same reason you were never taxed on the $3,000 in the first place.

When should you mark an invoice uncollectible?

When you have stopped expecting payment and can say why. Two clocks matter here, and they are not the same clock.

The business one comes first. A reasonable sequence is reminders, an evidence file, a work stop, a demand letter, and then a decision. We lay that sequence out step by step in what to do when a client won't pay your invoice. Somewhere past the demand letter deadline you decide whether to sue, assign it to collections, or let it go. Closing the invoice is the last step of that decision, not the first.

The tax one is only relevant if a deduction is possible, meaning you are on an accrual method. The IRS says a debt becomes worthless when the facts and circumstances show no reasonable expectation of repayment. To show that, you have to establish that you took reasonable steps to collect, and you do not have to go to court if you can show a judgment would be uncollectible. The deduction belongs to the year the debt becomes worthless. You also do not have to wait until the due date to decide, but if you take the position, you want the collection trail to exist already.

Practical triggers that make an invoice safe to mark uncollectible in your own books:

  1. The client is insolvent or the business is closed, and you have confirmation or a filing to point to.
  2. The client has disputed the debt and you have decided not to contest it, with the decision written down.
  3. You sent a demand letter, the deadline passed with no payment or reply, and you have chosen not to escalate.
  4. The cost of collecting exceeds what you would recover, and you have written that comparison down.

Mark it uncollectible in your records, not by deleting it. If the invoice carries a number in your sequence, keep it. Our note on how to void an invoice explains why a closed invoice should stay visible rather than disappear.

What records should you keep in case the client pays later?

Everything, for as long as the tax-year rules and your own memory require. The reason is the recovery rule.

Publication 334 says that if you claim a bad debt deduction and later collect all or part of it, you may have to include the recovery in your gross income, up to the amount you actually deducted. If you were on the cash method and never deducted anything, a late payment is simply ordinary income in the year it arrives. Either way, you want a clean trail so the money lands in the right year. The same publication points to Recoveries in Publication 525 for the detail.

A short checklist for a closed invoice:

  • The invoice itself, with its number, issue date, due date and terms.
  • The agreement or the email that accepted the scope and price.
  • Proof of delivery: commit history, merge records, deploy logs, the staging URL.
  • Every collection step with a date: reminders, the work stop, the demand letter and proof it was delivered.
  • The costs you paid, with receipts, so the deductible part is documented.
  • A one-line note on why you closed it, with the date and your reasoning.
  • A reconciliation note if the client pays later: the date received, the amount, and which invoice it settles.

This is also why the invoice should be a proper document to begin with. A clear number, dates and terms are what turn a lost fee into a closed, documented item instead of a vague regret.

FAQ

What is a business bad debt?

It is a loss from a debt that became worthless, either created in your business or closely related to it. The IRS says business bad debts are mainly the result of credit sales to customers, and that the uncollectible part of your accounts receivable can qualify. The condition is that the amount was included in your gross income in the year you claim the deduction or an earlier one. For a freelancer on the cash method, an unpaid fee generally does not meet that condition.

Do I owe tax on invoices that were never paid?

On the cash method, generally not. You report income when you receive payment, so an invoice the client never pays never enters your income. On an accrual method you normally report income when earned, so you can owe tax on an invoice before collecting it, and you then look to the bad debt deduction to offset it once the debt is worthless. Confirm which method you use before you assume either.

What if the client pays after I wrote it off?

If you only closed it in your own books and never took a tax deduction, the payment is ordinary income in the year you receive it, and you record it against the original invoice. If you had claimed a bad debt deduction, you may have to include the recovery in income up to the amount you deducted, per the IRS's Publication 334 and Publication 525. Either way, note the date and amount received and keep the original invoice number attached to it.

Can I deduct the hours I worked?

No. Your own time is not an expense you paid, so it is not a deduction. The cost-side deductions are the real dollars you spent on the job, such as hosting, API usage, tools and subcontractors. Lost billable time is a business loss, not a tax line. The way to protect your hours is upstream: deposits and milestone payments mean you are never fully exposed on a single invoice.

Close it out cleanly

Your saved invoices in billable.dev show what you billed and when, which is the record this whole post depends on. Generate the invoice free at billable.dev, no account needed and nothing leaves your browser. Pro ($4/mo billed as $24 every 6 months, or $79 once) adds invoice history and a JSON export you can file with your records for the year.

Sources: IRS Topic no. 453, Bad debt deduction; IRS Publication 334, Tax Guide for Small Business; IRS Publication 525, Taxable and Nontaxable Income. General information, not tax advice. Check with a tax professional about your own situation.


Billable is a free, client-side invoice generator for developers. Your data stays in your browser.