Accounts Receivable Automation

Bad Debt Expense: How to Calculate It, Record It, and Write Off Uncollectible Invoices

How to calculate bad debt expense, book the write-off and recovery entries, and what the IRS lets you deduct, with one worked example that reconciles.

Jared Shulman
November 24, 2026
AR manager reading a page pulled from an open drawer of hanging files in a records room
Bad debt expense is what you lose on credit sales customers won't pay. Under US GAAP you record it when you estimate losses by truing up the allowance for doubtful accounts at period end; writing off a specific invoice later is a balance-sheet entry that doesn't hit the income statement again.
  • Bad debt expense comes from the estimate, not the write-off: set a target allowance from your aging and book the difference.
  • Under the allowance method a write-off debits the allowance and credits AR, with no new P&L effect.
  • Record a recovery by reversing the write-off first, then recording the cash.
  • Define the bad debt ratio once (bad debt expense ÷ net credit sales) and use it consistently.
  • For US taxes, the allowance-based expense generally isn't deductible; a specific charge-off of a worthless debt generally is. Confirm with your tax advisor.

Bad debt expense is what you lose on credit sales that customers won't pay. If you report under US GAAP, you record it when you estimate those losses by adjusting your allowance for doubtful accounts, usually at period end. Writing off a specific invoice later is a balance-sheet entry that doesn't hit the income statement again.

Much of the confusion around bad debt comes from mixing those two moments up. Below: how to calculate the period's expense, the three journal entries (estimate, write-off, recovery), when an invoice is truly uncollectible, and how the IRS treats a bad debt write-off, with one illustrative example that reconciles from start to finish.

What is bad debt expense?

Bad debt expense is the income-statement cost of extending credit: the portion of receivables you expect to go unpaid, recognized as an expense. It's usually reported as an operating expense; which line it rolls up to depends on your chart of accounts, so check that mapping before comparing your number with anyone else's.

Three accounts move together whenever you deal with uncollectible invoices:

Account Where it lives What changes it
Bad debt expense Income statement The period-end estimate (the true-up of the allowance)
Allowance for doubtful accounts Balance sheet, contra-asset against AR Increased by the expense and by recoveries; reduced by write-offs
Accounts receivable Balance sheet, current asset Reduced when a specific invoice is written off

Gross AR minus the allowance is net AR, the amount you expect to collect. Keep the three roles separate and every entry below falls into place.

Allowance method vs. direct write-off method

Allowance method

Under the allowance method, you estimate credit losses on the receivables you hold and book the estimate as expense in the period of the related sales. When a specific invoice later proves uncollectible, you write it off against the allowance you already built. US GAAP requires this approach when credit losses are material. Since the CECL standard (ASC 326) took effect, the allowance reflects expected credit losses over the life of the receivables, not just losses that have already occurred. The measurement detail behind that estimate is covered in our guide to the allowance for doubtful accounts.

Direct write-off method

Under the direct write-off method, you record nothing until a specific account is deemed uncollectible, then debit bad debt expense and credit AR.

The problem is timing. Say you sell $12,000 of goods in the fourth quarter and the customer files for Chapter 7 bankruptcy the following spring. Under the direct method, the revenue sits in one year and the $12,000 loss lands in the next, so neither year's profit is right. That breaks the matching principle, which is why the direct method isn't GAAP-compliant when bad debts are material; it mainly suits very small sellers with immaterial credit losses. It still matters to a GAAP reporter, because it's essentially what US federal income tax requires (see the tax section).

Allowance method Direct write-off method
When expense is recognized When losses are estimated (period end) When a specific invoice is deemed uncollectible
Matches loss to the sale period Yes No
Acceptable under US GAAP Yes (required when losses are material) Only when bad debts are immaterial
US federal income tax Allowance not deductible Close to the specific charge-off method tax uses

How to calculate bad debt expense

Under the allowance method's balance-sheet approach, calculating bad debt expense is a three-step true-up: decide what the allowance should be, see what it is now, and book the difference.

Illustrative example. A mid-market distributor closes its calendar year with $2,400,000 of net credit sales. Its allowance for doubtful accounts opened the year at $40,000 (credit). During the year it wrote off $35,000 of invoices, including a $12,000 balance owed by a customer that filed Chapter 7. A customer written off in an earlier year paid $3,000. All figures are invented for illustration.

Step 1: Set the target allowance

Start with the balance the allowance should carry at period end. Typically it comes from an aging analysis: group open invoices by days past due and apply a loss rate to each bucket. That work belongs to the allowance itself, and we walk through it in our allowance for doubtful accounts guide. In this example, the year-end aging says the allowance should be $52,000 against gross AR of $1,000,000.

Step 2: Find the pre-adjustment balance

Roll the allowance forward from the opening balance before you book anything new:

$40,000 opening − $35,000 write-offs + $3,000 recovery = $8,000 credit

Step 3: Book the true-up

Bad debt expense = target allowance − pre-adjustment balance = $52,000 − $8,000 = $44,000.

Account Debit Credit
Bad debt expense $44,000
Allowance for doubtful accounts $44,000

Net AR at year end is $1,000,000 − $52,000 = $948,000.

If the allowance runs into a debit balance. Write-offs can exceed what's in the allowance. If this company had written off $50,000 instead of $35,000, the pre-adjustment balance would be $40,000 − $50,000 + $3,000 = $7,000 debit. Reaching a $52,000 credit then takes $52,000 + $7,000 = $59,000 of expense. A debit balance signals that earlier estimates were too low.

If you use the percentage-of-sales approach instead

Some teams calculate bad debt expense directly as a percentage of credit sales. Under that approach, the percentage is the expense and the existing allowance balance doesn't enter the calculation. At 1.5% of $2,400,000, the expense would be $36,000, leaving an ending allowance of $8,000 + $36,000 = $44,000, which is $8,000 short of what the aging supports. That gap is why many teams use a sales percentage for monthly closes and true up to an aging-based target at quarter or year end.

Check it with an allowance rollforward

A rollforward proves the numbers tie. Its columns mirror the valuation-and-qualifying-accounts schedule (Schedule II) that public companies file with the SEC:

Beginning balance Charged to bad debt expense Write-offs Recoveries Ending balance
$40,000 $44,000 ($35,000) $3,000 $52,000

$40,000 + $44,000 − ($35,000 − $3,000) = $52,000. For the debit-balance variant: $40,000 + $59,000 − $47,000 = $52,000.

Bad debt ratio: one definition to use consistently

Bad debt ratio = bad debt expense for the period ÷ net credit sales for the same period

In the example: $44,000 ÷ $2,400,000 = 1.83%.

Both inputs are flows over the same period. Some sources divide by accounts receivable instead, but AR is a point-in-time balance that swings with collection timing and shrinks with every write-off, so that version moves for reasons unrelated to credit quality. Cash sales stay out because they carry no credit risk. And a "debt ratio" is a different metric altogether (total liabilities ÷ total assets, a solvency measure). Pick one definition and use it every period.

Pair it with a second metric that tracks realized losses:

Net write-off rate = (write-offs − recoveries) ÷ net credit sales

Here: ($35,000 − $3,000) ÷ $2,400,000 = 1.33%.

Bad debt expense reflects your estimate; net write-offs reflect losses you've actually taken. The 0.5-point gap in this example is the $12,000 the allowance grew during the year ($52,000 − $40,000) because the year-end aging looked worse than the opening one. If expense keeps running well above net write-offs, check whether your loss rates are too cautious or risk really is building; if it runs below, the reserve may be thin.

There's no reliable cross-industry "normal" bad debt percentage, so compare against your own trend, your credit terms, and your customer mix. Read the ratio alongside the AR turnover ratio and days sales outstanding to see whether slower collections are feeding the estimate.

Bad debt write-off: how to record it

The write-off entry under the allowance method

When the $12,000 Chapter 7 customer's invoice is confirmed uncollectible, the entry is:

Account Debit Credit
Allowance for doubtful accounts $12,000
Accounts receivable – customer $12,000

Gross AR and the allowance each fall by $12,000. Net AR doesn't change, and nothing touches the income statement. The expense was recognized when the allowance was built.

A common mistake: debiting bad debt expense at write-off while also accruing an allowance. That's the direct write-off entry, and using it on top of an allowance counts the same loss twice: once in the estimate and again when the invoice dies. If your write-off workflow defaults to an expense account, change the default to the allowance.

Partial write-offs and settlements

Under ASC 326, write-offs can be full or partial. If a struggling customer agrees to pay part of the balance in final settlement, you write off the difference against the allowance once the settlement is final. Keep the signed terms in the file for audit and tax.

Disputes are not bad debt

If a customer won't pay because of a pricing or quality dispute and you concede the point, that's generally a revenue adjustment recorded with a credit memo, not a credit loss. Booking it as bad debt inflates both the expense and the bad debt ratio and hides a problem that sits in billing or fulfillment rather than in credit. For working disputes to a resolution, see our guide to invoice dispute management.

When should you write off an invoice?

GAAP and the IRS ask similar questions in different words.

  • US GAAP (ASC 326-20-35-8): write off a receivable in the period it is deemed uncollectible.
  • IRS: a debt is worthless when the facts show there's no reasonable expectation it will be repaid. You need to show you took reasonable steps to collect it, though you don't have to sue if you can show a court judgment would be uncollectible. Treasury regulations treat bankruptcy as generally indicating at least partial worthlessness of unsecured and unpreferred debt, though bankruptcy alone doesn't establish that the entire debt is worthless, and weigh all pertinent evidence, including collateral and the debtor's finances.

Neither sets a day count. "Write off at 90 days" isn't a rule; 90, 120, or 180 days past due are review triggers a company picks for itself. The decision rests on evidence such as:

  • A bankruptcy filing or notice
  • The customer has closed or can't be reached
  • A collection agency or attorney returns the account as uncollectible
  • A settlement for less than the balance (write off the shortfall)
  • Further collection would cost more than the balance
  • The time to sue has passed under the applicable state law (ask counsel)
  • A documented collection history showing reasonable effort

Put it in a written policy: which triggers start a review, who approves write-offs at each dollar level, what documentation goes in the file (collection log, letters, agency return, court or bankruptcy notices), and whether the account stays with an agency afterward. A write-off is an accounting entry, not debt forgiveness, so collection efforts can continue. Log why each account was written off: one contingency-fee law firm we spoke with had started analyzing which industries and defendants never paid, to feed that back into case intake.

Before an account gets there, make sure the escalation steps have actually happened: a demand letter or final collection letter, a payment plan offer, and, where the balance justifies it, an outside agency (see our roundup of debt collection software).

Recording a recovery when a written-off customer pays

When a customer you've written off pays after all, reverse the write-off first and then record the cash. For the $3,000 recovery in the example:

Account Debit Credit
Accounts receivable – customer $3,000
Allowance for doubtful accounts $3,000
Cash $3,000
Accounts receivable – customer $3,000

Reinstating first keeps the customer's record accurate: it shows they eventually paid, which matters at their next credit review. Under CECL, recoveries flow back through the allowance. That's why the $3,000 appears in the rollforward above rather than as income.

Under the direct write-off method, the recovery reverses the original write-off (debit AR, credit bad debt expense) before you record the cash.

A payment on a closed invoice is easy to misapply or leave unapplied, making another invoice look overdue; if that happens often, look at how your team handles cash application.

How bad debt write-offs are treated for US taxes

This section summarizes general US federal income tax rules for a business that sells on credit. It isn't tax advice: your entity type, tax method, and facts matter, so confirm the treatment with your tax advisor.

Specific charge-off, not the allowance

Business bad debts, including uncollectible credit sales to customers, are generally deductible under Internal Revenue Code §166. The reserve method under §166(c) was repealed for tax years beginning after December 31, 1986, although special rules remain for certain banks. For most companies, the GAAP allowance and the bad debt expense booked to build it aren't deductible. Under the specific charge-off method, a wholly worthless debt is deducted in the year it becomes worthless; a partly worthless debt may be deducted to the extent charged off on the books, and that charge-off can be deferred to a later year while the debt remains only partly worthless.

Accrual vs. cash basis

For receivables from credit sales, a bad debt deduction generally requires the unpaid amount to have been included in gross income in the current or a prior tax year. An accrual-basis company already reported the sale as income, so a worthless receivable is deductible. A cash-basis business never recorded the unpaid invoice as income, so there's generally nothing to deduct.

Partial vs. total worthlessness

If a business debt is only partly worthless, the deduction is generally limited to the amount you charged off on your books during that tax year (Treas. Reg. §1.166-3), and you need to show how much is worthless. A debt that becomes wholly worthless is deductible in the year it becomes worthless, less anything already deducted. Booking the write-off and documenting the reason in the same year makes the position easier to support.

Recoveries and missed deductions

If you collect on a debt you previously deducted, the recovery is included in income in the year you receive it, to the extent the earlier deduction reduced your tax. If you missed a deduction for a wholly worthless debt, a refund claim generally must be filed by the later of seven years from the original return's due date (without extensions) or two years after paying the tax. For partly worthless debts, the usual deadline is the later of three years after filing the return or two years after paying the tax.

The book-tax difference

Back to the example, assuming each write-off qualified for a tax deduction that year and the $3,000 recovery had been deducted in a prior year: the business deducts $35,000 of bad debts and includes the $3,000 recovery in taxable income. The net reduction in taxable income is $32,000, compared with $44,000 of book bad debt expense. The $12,000 difference equals the year's growth in the allowance.

Because the allowance generally isn't deductible for tax, the tax basis of the receivables typically exceeds their net book carrying amount. This creates a deductible temporary difference that generally gives rise to a deferred tax asset, subject to assessment of its realizability under ASC 740. For the AR team, the takeaway is coordination: give tax your write-off documentation so it supports the deduction year.

Keeping bad debt expense down

The levers that lower bad debt expense sit upstream of the journal entries:

  • Credit decisions. Clear limits and terms, reviewed as customers grow, are the first defense.
  • Earlier follow-up. Automated payment reminders and a consistent B2B collection strategy catch problems while invoices are still collectible.
  • Faster dispute resolution. An unresolved dispute ages into the high-loss buckets and inflates the estimate.
  • Accurate cash application. Unapplied or misapplied cash makes paid invoices look delinquent, which pushes up both the aging and the target allowance.
  • Process visibility. Map where invoices stall across the order-to-cash cycle, and use AR automation to keep routine work moving.

Net AR also feeds current assets, so a growing reserve shows up in working capital.

Putting it together

Bad debt expense comes from the estimate, not the write-off: set a target allowance from your aging, true up the balance at period end, write off specific invoices against the allowance when the evidence supports it, run recoveries back through the allowance, and deduct specific charge-offs for tax. A monthly routine covers it: run the aging, compute the true-up, book the expense, reconcile the rollforward, review write-off candidates against your policy, and file the documentation.

Is bad debt expense an operating expense?

Yes. It's a cost of selling on credit, usually reported within operating expenses; the exact line depends on your chart of accounts.

Is writing off bad debt the same as bad debt expense?

Under the allowance method, no. The expense is booked when you estimate losses, and the write-off later moves a specific invoice out of AR and the allowance with no P&L effect. Under the direct write-off method, the write-off and the expense are the same entry.

Is bad debt expense tax deductible?

The allowance-based expense generally isn't. For an accrual-basis business, the specific charge-off of a debt in the year it becomes worthless generally is.

Insights

You might also like...

VP of Finance walking past a packing bench with a sealed box near an open loading-dock door
Order to Cash Cycle: The Steps, Who Owns Each One, and Where Cash Gets Stuck
The order to cash cycle step by step: who owns each stage, where cash gets stuck, how it differs from the cash conversion cycle, and which KPIs to track.
Read more
Order to Cash Cycle: The Steps, Who Owns Each One, and Where Cash Gets Stuck
Accounts Receivable Automation
AR manager feeding remittance pages into a document scanner on a counter beside a laptop
Cash Application Automation: How It Works, What It Can Match, and the KPIs to Track
How cash application automation works, what it can match across remittance sources and short pays, and the KPIs to track, with formulas.
Read more
Cash Application Automation: How It Works, What It Can Match, and the KPIs to Track
Accounts Receivable Automation
AR manager on a window bench with a laptop and clipped stacks of printed pages beside her
Allowance for Doubtful Accounts: How to Calculate It (Aging Method Worked Example) and Record the Entries
How to calculate the allowance for doubtful accounts with an aging-method worked example, book the adjusting entry, and apply CECL and IFRS 9.
Read more
Allowance for Doubtful Accounts: How to Calculate It (Aging Method Worked Example) and Record the Entries
Accounts Receivable Automation
Book a free consultation with Daylit

Learn how to shorten your cash conversion cycle by reducing inventory levels, extending vendor payment terms, and accelerating customer collections.

Button
Button