Hide table of contents

This is not tax advice. My relevant training is in reading, writing, and arithmetic.

Reading this post is much more likely to be fun[1] than useful, but if you donate more than you can deduct from your US taxes, it might save you a few hundred dollars.

If you own appreciated stocks and want to donate to a charity, you have a choice between the following options:

  1. Donate the stocks directly to a charity[2]
  2. Sell the stocks and donate the cash

These two options have different tax implications. There are several posts that discuss tax optimization for large donors in the United States.[3][4][5][6] These posts are helpful and good and recommend donating the stocks directly. This is usually correct because 

  1. Selling the stocks will cause you to owe tax on the realized gains
  2. Avoiding capital gains will allow you to deduct up to $3k of capital losses from your taxable income[7]

However, there is[8] a quirk[9] of the tax system such that you can sometimes end up owing less tax by realizing more long-term capital gains.[10][11]

The amount of your charitable contributions that you can deduct from your federal taxes is limited to a certain percentage of your AGI.[12] The highest limit is 60% of AGI for cash donations.[13] If you've already donated cash in excess of the 60% limit[14], then a marginal dollar of AGI increases your charitable deduction by 60 cents. Long-term capital gains are included in AGI but taxed at a lower rate than ordinary income.[15] So realizing capital gains has two counteracting effects:

  1. Creating a tax liability on the capital gains themselves
  2. Decreasing your income tax liability by increasing your deductions

If the latter outweighs the former, then you effectively face a negative marginal tax on long-term capital gains. If you donate cash in excess of the 60% limit and don't have capital losses, this can happen in real life.

Federal-Only Examples

Suppose you're a single filer and your 2024 ordinary income was $750k and you donated $600k of that to a public charity and do not have any capital losses. You can deduct $450k, 60% of your AGI, which puts your taxable income at $300k. This is in the 35% income tax bracket and the 15% capital gains tax bracket.[16] Additionally, because your AGI exceeds $200k, your marginal capital gains are subject to the 3.8% net investment income tax.[17] You are not subject to the alternative minimum tax because the alternative minimum tax calculation still allows subtracting charitable donations. A marginal dollar of AGI lets you deduct an additional 60 cents from your taxable income. Putting all of this together gives you an effective marginal long-term capital gains tax rate of . That is, realizing $1000 of long-term capital gains would reduce the amount of tax you owe by $22.[10] If you're in the 32% federal income tax bracket, this still works out slightly favorable: . Putting some test numbers into FreeTaxUSA's filing software gives outputs consistent with the above calculations. If you live in a state that doesn't tax wages or capital gains[18], then that's all there is to it.

Illinois Examples

Illinois imposes a 4.95% flat tax on wages and capital gains and does not allow deductions for charitable donations. This only works out to a negative combined rate if you're in the 0% capital gains bracket. Suppose you're a single filer with $85k of ordinary income and $60k of cash donations. This puts your taxable income in the 12% income tax bracket and the 0% capital gains tax bracket.[16] You are not subject to the net investment income tax.[17] A marginal dollar of AGI lets you deduct an additional 60 cents for your donations and increases your Illinois tax liability by 4.95 cents. The additional state tax is deductible from your federal taxable income. So your effective marginal rate on the capital gains is .

I have not checked the state-level results against the output of tax preparation software or state tax authorities' worksheets, so these calculations are much more likely to be wrong than the federal-only ones.

California Examples

California has a progressive income tax system and taxes capital gains as ordinary income.[19] Suppose you're a single filer with $135k of ordinary income and $95k of cash donations. This puts your federal taxable income in the 22% income tax bracket and 15% capital gains tax bracket.[16] And your California taxable income in the 9.3% bracket. [20] Charitable donations are deductible from your California taxes, but California limits the deduction to 50% of your federal AGI.[21] This means your effective marginal California tax on capital gains is , which happens to be close to the Illinois tax rate. This gives a combined rate of , so in this case, you're better of donating the stocks directly. If you're, instead, in the 32% federal tax bracket, you can't use that same formula because of the $10k limit on deductions for state and local income tax; Someone with a high enough income to be in the 32% federal bracket would owe more than $10k of California tax and be unable to deduct marginal state taxes[22] and also be subject to the 3.8% net investment income tax.[17] So you end up with , which still favors donating directly. So, as with Illinois, realizing the capital gains only works out to being favorable if you're in the 0% capital gains bracket. If you're in the 0% federal capital gains bracket and the 6% California bracket, your effective marginal capital gains tax rate would look like .

  1. ^

    If you don't find reading about taxes fun, you won't enjoy reading this post and probably shouldn't've clicked on it. Sorry.

  2. ^

    The only charity you directly give stocks to should be a donor-advised fund, otherwise people at (e.g.) GiveWell have to deal with stock-related paperwork.

  3. ^
  1. ^
  2. ^

    https://reducing-suffering.org/advanced-tips-on-personal-finance/ (The "Negative capital-gains tax" section is not the same thing as the negative capital gains tax that this post is about)

  3. ^
  4. ^

    If you have capital losses and capital gains, they offset each other. But capital losses that do not offset capital gains can offset up to $3k per year of ordinary income. Since ordinary income is taxed at a higher rate than long-term capital gains, it's advantageous to donate the stocks for this reason. This capital loss deduction probably amounts to more tax savings than the effect that this post is about and is, therefore, more relevant to investment decisions. A relevant search term is "tax loss harvesting".

  5. ^

    as far as i can tell

  6. ^

    If i were an author of the US tax code, i would call this a "bug".

  7. ^

    Also, there could be an advantage to donating cash instead of appreciated stocks because that lets you deduct 60% of your AGI instead of 30%. But that's not what this post is about.

  8. ^

    Qualified dividends are taxed at long-term capital gains rates, so this might also affect investment decisions.

  9. ^

    More accurately, the limit is proportional to your contribution base, which is defined (in 26 U.S. Code § 170 (b)(1)(H)) as equal to your adjusted gross income unless you have net operating loss carryback. I'm assuming that you don't have net operating loss carryback.

  10. ^

    26 U.S. Code § 170 (b)(1)(G); This will change from 60% to 50% in tax year 2026. I'm assuming that it's currently 2024.

  11. ^

    in this year or with carryover acquired by exceeding the limit in the previous five years

  12. ^

    that lower rate is sometimes zero

  13. ^
  14. ^
  15. ^

    Alaska, Florida, New Hampshire, Nevada, South Dakota, Tennessee, Texas, Wyoming

  16. ^
  17. ^
  18. ^
  19. ^
Show all footnotes
Comments


No comments on this post yet.
Be the first to respond.
Curated and popular this week
LintzA
 ·  · 15m read
 · 
Cross-posted to Lesswrong Introduction Several developments over the past few months should cause you to re-evaluate what you are doing. These include: 1. Updates toward short timelines 2. The Trump presidency 3. The o1 (inference-time compute scaling) paradigm 4. Deepseek 5. Stargate/AI datacenter spending 6. Increased internal deployment 7. Absence of AI x-risk/safety considerations in mainstream AI discourse Taken together, these are enough to render many existing AI governance strategies obsolete (and probably some technical safety strategies too). There's a good chance we're entering crunch time and that should absolutely affect your theory of change and what you plan to work on. In this piece I try to give a quick summary of these developments and think through the broader implications these have for AI safety. At the end of the piece I give some quick initial thoughts on how these developments affect what safety-concerned folks should be prioritizing. These are early days and I expect many of my takes will shift, look forward to discussing in the comments!  Implications of recent developments Updates toward short timelines There’s general agreement that timelines are likely to be far shorter than most expected. Both Sam Altman and Dario Amodei have recently said they expect AGI within the next 3 years. Anecdotally, nearly everyone I know or have heard of who was expecting longer timelines has updated significantly toward short timelines (<5 years). E.g. Ajeya’s median estimate is that 99% of fully-remote jobs will be automatable in roughly 6-8 years, 5+ years earlier than her 2023 estimate. On a quick look, prediction markets seem to have shifted to short timelines (e.g. Metaculus[1] & Manifold appear to have roughly 2030 median timelines to AGI, though haven’t moved dramatically in recent months). We’ve consistently seen performance on benchmarks far exceed what most predicted. Most recently, Epoch was surprised to see OpenAI’s o3 model achi
Dr Kassim
 ·  · 4m read
 · 
Hey everyone, I’ve been going through the EA Introductory Program, and I have to admit some of these ideas make sense, but others leave me with more questions than answers. I’m trying to wrap my head around certain core EA principles, and the more I think about them, the more I wonder: Am I misunderstanding, or are there blind spots in EA’s approach? I’d really love to hear what others think. Maybe you can help me clarify some of my doubts. Or maybe you share the same reservations? Let’s talk. Cause Prioritization. Does It Ignore Political and Social Reality? EA focuses on doing the most good per dollar, which makes sense in theory. But does it hold up when you apply it to real world contexts especially in countries like Uganda? Take malaria prevention. It’s a top EA cause because it’s highly cost effective $5,000 can save a life through bed nets (GiveWell, 2023). But what happens when government corruption or instability disrupts these programs? The Global Fund scandal in Uganda saw $1.6 million in malaria aid mismanaged (Global Fund Audit Report, 2016). If money isn’t reaching the people it’s meant to help, is it really the best use of resources? And what about leadership changes? Policies shift unpredictably here. A national animal welfare initiative I supported lost momentum when political priorities changed. How does EA factor in these uncertainties when prioritizing causes? It feels like EA assumes a stable world where money always achieves the intended impact. But what if that’s not the world we live in? Long termism. A Luxury When the Present Is in Crisis? I get why long termists argue that future people matter. But should we really prioritize them over people suffering today? Long termism tells us that existential risks like AI could wipe out trillions of future lives. But in Uganda, we’re losing lives now—1,500+ die from rabies annually (WHO, 2021), and 41% of children suffer from stunting due to malnutrition (UNICEF, 2022). These are preventable d
Rory Fenton
 ·  · 6m read
 · 
Cross-posted from my blog. Contrary to my carefully crafted brand as a weak nerd, I go to a local CrossFit gym a few times a week. Every year, the gym raises funds for a scholarship for teens from lower-income families to attend their summer camp program. I don’t know how many Crossfit-interested low-income teens there are in my small town, but I’ll guess there are perhaps 2 of them who would benefit from the scholarship. After all, CrossFit is pretty niche, and the town is small. Helping youngsters get swole in the Pacific Northwest is not exactly as cost-effective as preventing malaria in Malawi. But I notice I feel drawn to supporting the scholarship anyway. Every time it pops in my head I think, “My money could fully solve this problem”. The camp only costs a few hundred dollars per kid and if there are just 2 kids who need support, I could give $500 and there would no longer be teenagers in my town who want to go to a CrossFit summer camp but can’t. Thanks to me, the hero, this problem would be entirely solved. 100%. That is not how most nonprofit work feels to me. You are only ever making small dents in important problems I want to work on big problems. Global poverty. Malaria. Everyone not suddenly dying. But if I’m honest, what I really want is to solve those problems. Me, personally, solve them. This is a continued source of frustration and sadness because I absolutely cannot solve those problems. Consider what else my $500 CrossFit scholarship might do: * I want to save lives, and USAID suddenly stops giving $7 billion a year to PEPFAR. So I give $500 to the Rapid Response Fund. My donation solves 0.000001% of the problem and I feel like I have failed. * I want to solve climate change, and getting to net zero will require stopping or removing emissions of 1,500 billion tons of carbon dioxide. I give $500 to a policy nonprofit that reduces emissions, in expectation, by 50 tons. My donation solves 0.000000003% of the problem and I feel like I have f