Qualified Charitable Distribution Calculator: Methodology

Last updated: November 19, 2026

What it answers

Given a gift to a public charity, how much federal tax does it save, and what does it cost you after tax, if you give it as a qualified charitable distribution from an IRA, as cash, as long-term shares, or as several years of gifts bunched into a donor-advised fund. It also shows what each choice does to your AGI, the NIIT, your Medicare Part B premium two years later and the taxable part of your Social Security.

Tax years loaded: 2026 and 2027. The calculator opens on 2027, the planning year. The rules it applies start in 2026, so no earlier year is offered.

Inputs

  • Tax year, filing status, age on the day of the gift (it decides whether a QCD can be made), and optionally the age at the end of the year and a spouse's age at the end of the year on a joint return: the extra standard deduction for age 65 and over (26 U.S.C. 63(f)) and the senior deduction (151(d)(5)(C)) count a person who reaches 65 before the close of the year.
  • Other ordinary income, qualified dividends and long-term gains already in the year, and other itemized deductions (taken as given: apply the state and local tax cap and the medical-expense floor before entering them).
  • IRA distribution for the year (for example your RMD), fully taxable in the comparison, and the gift.
  • Cost basis of the shares and the years of bunching (2 to 5).
  • Optional: net investment income, Social Security benefits and tax-exempt interest. Left empty, the NIIT and Social Security knock-ons are marked not included.

How a year is taxed

One routine taxes the baseline (the year with no gift) and every scenario:

  1. AGI is the other ordinary income, the taxable IRA distribution, qualified dividends and gains, and the taxable part of Social Security (Publication 915 Worksheet 1, when benefits are given).
  2. Itemized deductions are the other itemized deductions plus the allowed charitable gift, less the section 68 reduction of 2/37 of the lesser of the itemized deductions or the taxable income, counted as increased by the itemized deductions (before them), above the start of the 37% bracket (68(a)(2)). The standard deduction (with the extra amount for age 65 and over) is the other choice, plus the non-itemizer deduction for cash gifts. The senior deduction of 26 U.S.C. 151(d)(5)(C) comes off either way.
  3. Tax is figured on the 2027 brackets, with the preferential part (qualified dividends and long-term gains) taxed at the lower capital gain rates on top of the ordinary part. The method with the lower income tax is chosen; a tie takes the standard deduction.
  4. The NIIT (3.8%) is added on the net investment income entered and, for shares, on the gain a sale would have produced.

Tax saved is the baseline's federal tax (income tax plus NIIT) less the scenario's. Net cost is the gift less the tax saved; for shares it also takes off the tax a sale of the shares this year would have cost.

The four ways of giving

  • QCD. The part of the gift that can be a QCD (age at least 70½, up to the year's limit and up to the IRA distribution) is taken out of AGI and gets no deduction. The rest is shown as a cash gift, with the reason stated.
  • Cash. Up to 60% of AGI, less the 0.5% floor, if itemizing; otherwise the non-itemizer deduction. Amounts over the limit carry forward 5 years; their later use is not modelled.
  • Shares. Held more than a year and worth the gift amount: fair market value up to 30% of AGI, less the floor, if itemizing. No deduction if not itemizing, and the gain is never taxed.
  • Bunching. Years of the gift paid as one cash gift to a donor-advised fund in year 1, then nothing deductible in the other years, against giving the gift in cash every year. Every year uses the selected year's tables and the same income (an assumption: later tables are indexed).

Knock-ons the page shows

  • AGI and MAGI. MAGI is AGI for the NIIT and the senior deduction, and AGI plus tax-exempt interest for IRMAA.
  • NIIT. Form 8960 on the net investment income entered. Not included when none is entered.
  • IRMAA. The Medicare Part B surcharge set from MAGI two years earlier: a 2027 MAGI sets the 2029 premium. The 2029 tiers are not published, so the 2027 CMS tiers are used as an estimate. Per person, Part B only, and not added to the tax figures.
  • Taxable Social Security. Publication 915 Worksheet 1 at the scenario's income. Not included when no benefits are entered.

Worked example (from the engine, with its own tests)

A single filer aged 73 with $60,000 of other income takes $30,000 from an IRA and gives $10,000(2027, no itemized deductions, shares bought for $4,000). With no gift the federal tax is $9,106. As a QCD the tax is $6,774, a saving of $2,332, so the gift costs $7,668. As cash, the filer takes the standard deduction plus the non-itemizer deduction and saves $220, so it costs $9,780. As shares, a gain of $6,000 is never taxed (a sale would have cost $979) but a gift of shares has no deduction on a standard-deduction return, so it saves $0 and costs $9,021. Bunching $30,000 into a donor-advised fund saves $796 a year on average. The tests derive the expected values by hand from the tables above and the statute, not from running the code.

Check: QCD tax saved $2,332; cash tax saved $220. The inputs are illustrative.

Limitations: what is left out

  • State income tax: not computed. A QCD lowers federal AGI, which many states start from; the state effect is not shown.
  • Alternative minimum tax: not computed.
  • Carryovers: the amount over a limit is shown with its last year, but its use in later years is not modelled.
  • QCDs from a spouse's own IRA, and the 408(d)(8)(A) reduction for deductible IRA contributions made after 70½: not modelled.
  • The one-time QCD to a split-interest entity, gifts to private foundations, and gifts of property other than long-term stock: not modelled.
  • The additional standard deduction for blindness, other deductions (QBI, adjustments to income), credits and the Additional Medicare Tax on wages: not modelled.
  • The QCD and cash comparison assumes the gift goes to a public charity (a 170(b)(1)(A) organization). Gifts to other kinds of charity have different limits.
  • The calculator tests one person's IRA and one year. It is not tax advice for your return.

Sources

The QCD limit, the brackets, the standard deduction and the Medicare tiers change each year and are read from the data files the other calculators share. This page changes when a notice or a statute does.

Last updated: November 2026Calculator methodologyReport an error

This calculator is for educational purposes only and does not constitute financial advice. Results are estimates from the numbers you enter. Check with a licensed professional before you act on them. Full disclaimer →

Related Tools