Inventory Write-Off vs Donation: The Tax Math
Side-by-side comparison of COGS write-off vs Section 170(e)(3) enhanced deduction, with real dollar examples showing when donation wins.
# Inventory write-off vs donation: the tax math most food retailers get wrong
There is a thing that happens at virtually every food retail operation in America, multiple times per week, that costs the operator real money they could be keeping. Inventory approaches its sell-by date, nobody buys it, an employee throws it in the dumpster, and somewhere downstream a bookkeeper records the shrinkage. The owner, if they think about the tax treatment at all, assumes they got a write-off and moves on. This is understandable. It is also, in a surprising number of cases, the wrong answer by several thousand dollars a year.
The alternative is donating that inventory to a qualified food bank or similar organization and claiming an enhanced charitable deduction under Section 170(e)(3) of the Internal Revenue Code. Most food retailers have heard vaguely that food donation has tax benefits. Almost none of them have actually run the math. I want to fix that, because the math is not complicated and the answer is frequently "you are leaving meaningful money on the table."
What actually happens when you throw inventory away
Let me start with the thing most retailers misunderstand about their so-called write-off, because I find that even operators who have been filing returns for twenty years have a slightly wrong mental model of how this works.
When you dispose of inventory — whether it expires, spoils, gets damaged, or simply goes into the dumpster — you do not take a "deduction" in the way most people use that word. What happens is mechanical and automatic. Your cost of goods sold is calculated as beginning inventory plus purchases minus ending inventory. When product leaves your store without being sold, your ending inventory goes down. This means COGS goes up by exactly the cost basis of the disposed product. Higher COGS means lower taxable income, which means lower taxes. You "recover" the cost of the wasted inventory as a reduction in your tax bill, at whatever your effective rate happens to be.
So if you paid a dollar for something and threw it away, and you are taxed at 21% (the C-corp rate, though pass-through entities will have their own effective rates), you save twenty-one cents in taxes. You spent a dollar, got twenty-one cents of tax benefit, and ate a net loss of seventy-nine cents. That is the entirety of the "write-off" that people talk about. There is no special deduction, no form to file, no election to make. The tax code simply acknowledges that you spent money on something that never produced revenue, and it lets you count that spending against your income. This is the baseline, and it is worse than most people assume.
Not sure how much you're losing to expiry?
Run a free inventory waste audit — find your bleeding SKUs in 60 seconds. No sign-up required.
Run free auditThe enhanced deduction you probably are not using
Section 170(e)(3) creates a fundamentally different tax treatment for food inventory that you donate rather than discard. Instead of merely recovering your cost basis through the COGS mechanism, you can claim a charitable contribution deduction that is worth substantially more — up to twice your basis, in fact.
The formula works like this. You take your cost basis in the donated food, then you add half of the appreciation (that is, half the difference between fair market value and your basis), and the result is your deduction — subject to a cap of twice your basis. So the deduction equals your basis plus fifty percent of the spread between FMV and basis, or two times basis, whichever is less.
In practice, the cap at two times basis matters most when you have very high-margin items. For a product you paid a dollar for and would sell at $2.50, the appreciation is $1.50, half of that is seventy-five cents, so your deduction is $1.75 — which is less than the two-times-basis cap of $2.00, so the formula controls. At a 21% rate, that $1.75 deduction saves you about thirty-seven cents, compared to twenty-one cents from the disposal write-off. The incremental benefit is about sixteen cents per unit, which sounds trivial until you multiply it by the volume of food you are currently throwing away.
A quick note on fair market value: you cannot simply use your full retail shelf price if the food is approaching expiration. FMV should reflect what a willing buyer would pay a willing seller for the food in its current condition. For food approaching (but not past) its sell-by date, this is typically something between wholesale cost and retail price. Feeding America publishes an average value per pound for donated food (roughly $1.79 per pound as of recent figures) that many food banks use for their acknowledgment letters, though you should work with your CPA on the appropriate valuation methodology for your specific products.
Three businesses, three different answers
The enhanced deduction sounds good in theory, but theory does not pay rent. Let me walk through what this actually looks like for three different types of food retail operations, because the magnitude of the benefit varies significantly depending on your margins, your volume, and your tax rate.
Consider first a grocery store with a produce problem. Produce is a low-margin category — you might pay fifty cents a pound and sell it for a dollar fifty, which is a healthy markup percentage-wise but thin in absolute dollars. Say this store ends up with 50,000 pounds of near-expiry produce per year that currently goes into the dumpster. Under the disposal approach, that 50,000 pounds at fifty cents represents $25,000 flowing through COGS. At a 21% corporate rate, the tax benefit is $5,250, and the net loss after tax savings is $19,750. Now run the donation math: basis of fifty cents, plus half of the dollar spread between cost and FMV, gives an enhanced deduction of a dollar per pound. That is 50,000 pounds times a dollar, or $50,000 in total deductions. At 21%, the tax savings are $10,500 — exactly double what the disposal path yields. The store keeps an additional $5,250 per year by calling the food bank instead of the waste hauler. Not life-changing money, but not nothing either, and it recurs every single year.
Now take a convenience store chain that marks up dairy aggressively. Their cost basis on dairy is $1.20 per unit, they sell at $3.00, and they are running 30,000 units a year through spoilage. As an S-corp, the owners face a combined federal and state rate of about 30%. Disposal gives them $36,000 in COGS increase and $10,800 in tax savings. The donation path is more interesting here because the markup is higher: basis of $1.20 plus half of the $1.80 spread gives an enhanced deduction of $2.10 per unit (well under the two-times-basis cap of $2.40, so the formula controls). That is $63,000 in total deductions, yielding $18,900 in tax savings at their 30% rate. The incremental benefit of donating instead of discarding is $8,100 per year. For a convenience store chain, $8,100 is real money — it might cover a part-time employee's wages, or a meaningful fraction of one location's lease payment.
The third case is a small bakery filing on Schedule C at a 24% marginal rate. They have 8,000 loaves of day-old bread a year at eighty cents basis and $1.60 FMV. The disposal write-off runs $6,400 through COGS and saves $1,536 in taxes. Donating instead yields an enhanced deduction of $1.20 per loaf (eighty cents basis plus half of the eighty-cent spread), totaling $9,600, for tax savings of $2,304. The incremental benefit is $768 per year. Here is where the analysis gets honest: $768 is real, but it is also modest, and setting up a donation program has real administrative costs. For the bakery, the question is whether the time spent coordinating with a food bank, maintaining the extra documentation, and training staff on the donation procedures is worth roughly fifteen dollars a week. For many small bakeries the answer is still yes (particularly if they value the community goodwill, which does not show up on a tax return but does show up in customer loyalty), but it is a closer call than the convenience store chain.
When each path wins (and when it does not matter)
The donation path wins whenever the incremental tax benefit exceeds the incremental administrative cost of running a donation program. That sounds tautological, but it has useful corollaries. Higher markup means larger spread between FMV and basis, which means a bigger enhanced deduction. Higher tax rates make every dollar of deduction worth more. Higher volume of shrinkage means the per-unit administrative cost gets amortized over more units. And proximity to a willing food bank dramatically reduces the logistics burden.
The write-off path wins (or more precisely, the donation path is not worth the hassle) when your shrinkage volume is small enough that the absolute dollar benefit does not justify the paperwork, when the food has already passed the donation window and is genuinely unsafe, when no qualified organization in your area will accept your particular product type, or when your effective tax rate is so low that the enhanced deduction just does not move the needle. If you are running a very small operation with $5,000 a year in shrinkage and a 15% effective rate, the incremental benefit of donation might be a few hundred dollars — probably not enough to justify setting up new procedures and maintaining additional records.
For most food retailers with annual shrinkage exceeding $15,000 at cost, though, the math decisively favors donation. The convenience store chain example above is fairly typical of mid-size operators, and $8,100 per year is the kind of number that should get any owner's attention.
The documentation is more work, but not as much as you think
The IRS documentation requirements for the two paths are meaningfully different, and this is where a lot of retailers talk themselves out of the donation approach. Let me be specific about what each path actually requires so you can make an informed judgment.
For the disposal write-off, you need the inventory tracking you should already have: beginning and ending counts, records of disposal or destruction, shrinkage documented in your books, and the standard audit trail connecting purchases to sales and dispositions. If you are not already maintaining this, you have bigger problems than the write-off-versus-donation question, because you are not in compliance with basic tax requirements.
The donation path requires everything above plus several additional items. You need a contemporaneous written acknowledgment from the receiving organization for each donation over $250. You need records describing what you donated (quantity, type, condition), the date of each donation, a statement that you received nothing in exchange, your cost basis in the donated items, support for your FMV determination, and — this is the one people miss — a certification that the donated food will be used for care of the ill, needy, or infants (which is a statutory requirement for the enhanced deduction, not just a nice-to-have). If your total food donations exceed $5,000 in a tax year, you also need to file Form 8283 with your return.
This sounds like a lot, and relative to the disposal path it genuinely is more paperwork. But here is the thing that makes it manageable in practice: most food banks that work with retail donors have standardized acknowledgment processes. They will give you a receipt for each pickup that includes the description, date, quantities, and the required certifications. Your marginal burden is really about maintaining your own records of cost basis and FMV for each donation batch, and filing the 8283 if you cross the $5,000 threshold (which your CPA should be handling as part of your annual return preparation anyway).
You have to donate before the food expires, which means you need a system
This is the operational point that trips up most retailers who try to start donating. The enhanced deduction under Section 170(e)(3) requires that donated food be "wholesome" and fit for human consumption at the time of donation. Food that has passed its expiration date generally does not qualify. This means you cannot wait until your normal disposal process kicks in and then redirect product to the food bank — by that point, you have probably missed the window.
The distinction between sell-by dates, use-by dates, and true expiration dates matters here and is worth discussing with both your food bank partner and your CPA. But as a practical matter, most food banks prefer to receive dairy, meat, prepared foods, and bakery items three to seven days before the sell-by date. Shelf-stable items have a wider window but still need to arrive before they are considered unsafe.
The process implication is straightforward but important: you need your inventory management system (or whatever process you use to track dates) to flag products early enough that you can coordinate a pickup or drop-off while the food is still eligible. If your current process is "employee notices it is expired and throws it away," you will need to move the trigger point earlier. This is probably the single largest operational change required, and it is the reason that having a system which tracks expiration dates and surfaces donation-eligible inventory proactively matters so much.
Not every charity qualifies, and you need to verify
Section 170(e)(3) is specific about which organizations can receive donations that qualify for the enhanced deduction. The recipient must be a 501(c)(3) tax-exempt organization that uses the food for care of the ill, the needy, or infants. Food banks in the Feeding America network, soup kitchens, homeless shelters, and churches with active feeding programs all generally qualify. Private foundations do not, even if they have 501(c)(3) status. Organizations that resell donated food rather than distributing it to people in need do not qualify either. And organizations without an active feeding component — a church that simply accepts donations without a feeding program, for instance — may not meet the statutory requirement.
Before you start donating, get a copy of the organization's IRS determination letter confirming their 501(c)(3) status, and get them to certify in writing that your donated food will be used for care of the ill, needy, or infants. File both documents and do not lose them. If you ever face an audit (which is unlikely for this specific issue, but you plan for unlikely events in business), you will want to produce these without scrambling.
The practical economics of getting a program running
Setting up a donation program is a one-time cost that produces recurring annual benefits, which is the kind of investment food retailers should love. The first step is calling your regional Feeding America food bank (or a local food rescue organization) and telling them you are a food retailer interested in donating near-expiry inventory. Most of these organizations have retail donation coordinators whose entire job is to make this easy for you, because your waste is their supply and they are very motivated to help you solve the logistics.
You will need to decide on a pickup or drop-off arrangement. Larger retailers typically have the food bank send a truck on a regular schedule — twice a week is common. Smaller operations often drop off at a collection point, or arrange less frequent pickups. You will need to designate space (a shelf, a section of your walk-in cooler) where staff can segregate donation-eligible items as they pull them from the sales floor. You will need to train the relevant employees on what can be donated, when to pull it, and how to document it. And you will need a tracking mechanism — even a spreadsheet works for smaller operations — that records what was donated, the date, the cost basis, and the receiving organization, and that captures the acknowledgment receipt from the food bank.
The Bill Emerson Good Samaritan Food Donation Act, which is federal law, provides liability protection for food donors acting in good faith. If you donate food that is wholesome and fit for consumption at the time of donation, you are protected from civil and criminal liability even if someone later becomes ill. This addresses the concern I hear most often from retailers considering donation: "what if someone gets sick and sues me?" The answer, assuming good faith, is that federal law has your back. (This is one of those cases where Congress actually did something sensible and useful, which I realize is a contrarian claim.)
Contribution limits and year-end planning
There are caps on how much you can deduct, though they are unlikely to bite most food retailers. C-corps face a general charitable contribution limit of 10% of taxable income, with enhanced food donations getting a special limit of 15%. Pass-through entities and sole proprietors are similarly limited to 15% of aggregate net income from the trades or businesses making the contributions. If you exceed these limits — which would require a truly enormous donation program relative to your profitability — you can carry forward unused deductions for up to five years.
For the vast majority of food retailers, these limits are academic. Your food donations would need to represent a very large fraction of your taxable income before the cap becomes relevant. But if you are running a high-volume donation program, or if you had a particularly unprofitable year, it is worth having your CPA check the math on contribution limits as part of your year-end planning.
Running your own numbers takes about ten minutes
The calculation I walked through above for the grocery store, convenience chain, and bakery is not difficult. You need four numbers: your annual shrinkage at cost for items that could plausibly be donated while still wholesome, the fair market value of those items, your effective tax rate, and a rough estimate of what it would cost you in staff time and coordination to run a donation program. Multiply the donatable shrinkage by the enhanced deduction per unit (basis plus half the spread, capped at two times basis), apply your tax rate, subtract what you would have gotten from the disposal write-off (basis times tax rate), and the difference is your annual incremental benefit. If that number is north of $2,000 or $3,000, the donation program almost certainly pays for itself.
For a retailer with $50,000 in annual shrinkage at cost, reasonable markups, and a 25% effective tax rate, the difference between disposal and donation can easily exceed $10,000 per year. That is a number worth taking seriously. It does not require you to become a philanthropist or change your fundamental approach to business. It requires you to call a food bank, set up a pickup schedule, train a couple of employees, and keep somewhat better records than you are keeping now. The tax code is, for once, offering you a genuine incentive that aligns doing well with doing good, and the main reason more retailers have not taken advantage of it is that nobody has sat them down and walked through the arithmetic.
ShelfLifePro was built for food retailers who would rather optimize their tax position than throw money in the dumpster. Our platform flags donation-eligible inventory before it expires, calculates the Section 170(e)(3) benefit, and maintains the documentation trail your CPA will thank you for. Take a look at [ShelfLifePro for food and beverage retailers](/food-beverage) and see what the math looks like for your operation.
See what batch-level tracking actually looks like
ShelfLifePro tracks expiry by batch, automates FEFO rotation, and sends markdown alerts before stock expires. 14-day free trial, no credit card required.