Reviewed against IRC § 223 (Health Savings Accounts — establishment, contribution, qualification); IRC § 223(b)(2) (annual contribution limits, inflation-indexed under § 223(g)); IRC § 223(b)(3) ($1,000 catch-up for owners age 55+, statutory and not indexed); IRC § 223(b)(4) (pro-rata partial-year contribution rule); IRC § 223(b)(8) (last-month rule and 12-month testing period); IRC § 223(c)(2) (HDHP definition — minimum deductible and maximum out-of-pocket thresholds); IRC § 223(e)(1) (tax-free growth — earnings exempt from current income tax); IRC § 223(f)(1) (tax-free qualified medical withdrawals at any age); IRC § 223(f)(4) (20% additional tax on non-qualified withdrawals before age 65; raised from 10% to 20% by the Affordable Care Act effective 2011); IRC § 213(d) (definition of qualified medical expense incorporated by reference into § 223(f)(1)); IRC § 4973(g) (6% excise tax per year on excess HSA contributions until corrected by a corrective distribution); Rev. Proc. 2024-XX (annual inflation-adjusted HSA and HDHP figures — 2026 figures used here are inflation-projected estimates pending the IRS's final May 2025 release); IRS Form 8889 (HSA contribution and distribution reporting attached to Form 1040); IRS Publication 969 (Health Savings Accounts and Other Tax-Favored Health Plans — authoritative plain-English reference).
Federal HSA Contribution & Tax Benefit Calculator
Compute the IRC § 223 Health Savings Account maximum contribution and triple-tax-advantage benefit for the 2026 tax year. Models the self-only ($4,400 est.) and family ($8,750 est.) contribution limits, the age-55+ catch-up ($1,000 statutory under § 223(b)(3)), the immediate federal + state + FICA tax savings (FICA layer only via Section 125 payroll), the § 4973(g) 6% excise tax on excess contributions, the § 223(f)(4) 20% additional tax on non-qualified withdrawals before age 65, and the long-horizon tax-free growth projection under § 223(e)(1). Federal-pure mechanics — HDHP eligibility under § 223(c)(2) (2026 estimated: $1,700 / $3,400 minimum deductible, $8,500 / $17,000 maximum OOP).
Calculator
Adjust the inputs below; the result updates instantly.
Coverage
Self-only HDHP coverage applies when the High Deductible Health Plan covers only the account holder. Family HDHP coverage applies when the plan covers at least one other person besides the account holder (spouse, dependent, etc.). The 2026 estimated annual contribution limit is $4,400 for self-only and $8,750 for family. The 2026 estimated HDHP thresholds are $1,700 minimum deductible / $8,500 maximum out-of-pocket for self-only and $3,400 / $17,000 for family coverage under § 223(c)(2).
Contribution
Tax rates
Growth
Tax year of the contribution. The contribution limits in this calculator are the 2026 estimated figures ($4,400 self-only / $8,750 family / $1,000 catch-up; HDHP thresholds $1,700-$3,400 deductible / $8,500-$17,000 OOP). The IRS releases final 2026 figures via Revenue Procedure in May 2025 — 2026 figures here are inflation-projected estimates from the 2025 baseline ($4,300 / $8,550 / $1,000 / $1,650 / $3,300 / $8,300 / $16,600).
Contribution vs. limit
- Maximum allowable contribution
- $8,750.00
- Headroom remaining
- $0.00
- § 4973(g) 6% excess penalty (per year until corrected)
- $0.00
- Immediate federal tax savings
- $1,925.00
- Immediate state tax savings
- $437.50
- Immediate FICA savings (payroll only)
- $669.38
- Projected future value (after growth horizon)
- $66,607.23
- Lifetime tax-free growth
- $57,857.23
- Strategy note
- Pre-65 status: a non-qualified withdrawal would be subject to ordinary income tax PLUS the § 223(f)(4) 20% additional tax (20 years until the 20% additional tax disappears at age 65). Qualified medical withdrawals are tax-free at any age — save receipts indefinitely; an HSA reimbursement can be taken decades after the qualified medical expense was paid out-of-pocket. HSA vs FSA: an HSA balance rolls over year-over-year without limit and stays with the account holder if they change employers. An FSA is use-it-or-lose-it (with a small carryover or grace period at employer option) and is forfeited at employment separation. For long-horizon health planning, the HSA is the structurally superior vehicle.
Tools to go with this
Maxing the HSA captures the only triple-tax-advantage stack in the Code. Lock the 2026 contribution before December 31.
Fennec Press's federal HSA planning bundle covers the IRC § 223 contribution mechanics (self-only / family limits, the age-55+ statutory $1,000 catch-up under § 223(b)(3), the last-month rule and 12-month testing period under § 223(b)(8), the pro-rata partial-year formula under § 223(b)(4)), the HDHP eligibility framework under § 223(c)(2) (minimum deductible + max OOP), the payroll-vs-direct contribution decision (Section 125 cafeteria plan FICA savings layer worth 7.65%), the § 4973(g) excess contribution correction procedure (request a corrective distribution from the custodian before tax-filing deadline), the § 223(f)(4) 20% additional tax on non-qualified withdrawals before age 65 and the age-65 inflection where the HSA acts like a Traditional IRA, the § 213(d) qualified medical expense list (including Medicare Part B and Part D premiums but not Medigap), and the long-horizon stealth-retirement strategy of paying current medical expenses out-of-pocket and letting the HSA compound under § 223(e)(1) — built for HDHP-eligible owners and the CPAs and benefits professionals who advise them.
Open Fennec Press HSA planning bundle→Fennec Press is our sister site. Outbound link is UTM-tagged and disclosed.
How this calculator works
Section 223 of the Internal Revenue Code is the most tax-advantaged account in the entire Code. Traditional IRA contributions are deductible but withdrawals are taxable. Roth IRA contributions are after-tax but growth and withdrawals are tax-free. The Health Savings Account stacks BOTH: contributions are deductible (above the line, available with the standard deduction), growth is tax-free under § 223(e)(1), AND qualified medical withdrawals are tax-free at any age under § 223(f)(1). Layer in the additional 7.65% FICA savings available when contributions are routed through a Section 125 cafeteria plan payroll deduction, and the HSA is the highest-savings dollar in the federal tax code for HDHP-eligible owners. This calculator models the 2026 IRC § 223 contribution limits (estimated, pending IRS final release), the age-55+ catch-up under § 223(b)(3), the immediate federal + state + FICA tax savings, the § 4973(g) 6% excess contribution penalty, the § 223(f)(4) 20% additional tax on non-qualified withdrawals before age 65, and the long-horizon tax-free growth projection.
The triple tax advantage
Three independent advantages stack inside an HSA:
-
Contribution deduction. § 223(a) makes the contribution an above-the-line deduction against gross income, available whether the taxpayer itemizes or takes the standard deduction. The deduction reduces both taxable income and Adjusted Gross Income, which can also reduce phase-outs on other tax benefits.
-
Tax-free growth. § 223(e)(1) exempts HSA earnings from current income tax. Interest, dividends, and capital gains accumulate without annual taxation — identical to a Roth IRA's growth treatment, but with one extra advantage: the tax-free growth is fully refundable through qualified medical withdrawals rather than just preserved as principal.
-
Tax-free qualified medical withdrawals. § 223(f)(1) excludes qualified-medical-expense withdrawals from gross income at any age. Qualified expenses are defined in § 213(d) and include doctor visits, prescriptions, dental, vision, mental health, long-term-care premiums (subject to age-based caps), Medicare Part B and Part D premiums (but NOT Medigap), and over-the-counter medications post-CARES Act.
Routing the contribution through a Section 125 cafeteria plan payroll deduction adds a fourth advantage: the contribution is excluded from FICA wages, saving an additional 6.2% Social Security + 1.45% Medicare = 7.65% that a direct (out-of-pocket) contribution does not save. Most HSA contributors leak this layer by contributing directly rather than via payroll.
2026 contribution limits
The 2026 estimated figures, inflation-projected from the 2025 baseline (IRS releases final 2026 figures via Revenue Procedure in May 2025):
- Self-only HDHP coverage: $4,400 (up from $4,300 in 2025).
- Family HDHP coverage: $8,750 (up from $8,550 in 2025).
- Age 55+ catch-up: $1,000 (statutory under § 223(b)(3); has not been indexed for inflation since 2009).
The catch-up is per-account-holder, not per-account. A married couple where both spouses are 55+ and each has their own HSA can contribute the family base limit ($8,750) PLUS $1,000 catch-up to one spouse's HSA PLUS $1,000 catch-up to the other spouse's HSA — total $10,750 across both accounts. The second catch-up requires a separate HSA in the second spouse's name; catch-up cannot be doubled into a single account.
HDHP eligibility — the gatekeeper
To contribute to an HSA, the account holder must be covered under a High Deductible Health Plan meeting both the minimum deductible AND the maximum out-of-pocket thresholds set annually by the IRS under § 223(c)(2). 2026 estimated thresholds:
- Self-only: minimum deductible $1,700, maximum OOP $8,500.
- Family: minimum deductible $3,400, maximum OOP $17,000.
Many employer plans labeled "high deductible" do not actually meet these thresholds and are therefore not HSA-eligible. Always verify by checking the actual plan documents against the current-year IRS thresholds. The account holder must also have no disqualifying secondary coverage (general-purpose health FSA, non-HDHP secondary plan, Medicare enrollment) and must not be claimed as a dependent on another's return. Common disqualifications: enrollment in Medicare Part A (automatic for Social Security recipients at age 65), a spouse's general-purpose health FSA covering the account holder, or VA medical coverage in the prior 3 months.
Worked example 1 — 35-year-old family coverage at the max, payroll route
A 35-year-old account holder with family HDHP coverage contributes the full $8,750 family limit through a Section 125 cafeteria plan payroll deduction. Marginal federal rate 22%, state rate 5%.
- Maximum contribution: $4,400 base (family is $8,750 — error, use family) → $8,750 base + $0 catch-up (under 55) = $8,750.
- Federal savings: $8,750 × 22% = $1,925.
- State savings: $8,750 × 5% = $437.50.
- FICA savings (payroll route): $8,750 × 7.65% = $669.38.
- Total immediate savings: $1,925 + $437.50 + $669.38 = $3,031.88 (rounded $3,032).
The payroll route captures all three savings layers for a combined ~35% effective tax savings on the contribution — among the highest first-year tax-savings rates available on any dollar in the federal tax code.
Worked example 2 — same facts, direct (non-payroll) contribution
Same 35-year-old, same $8,750 contribution, same 22% + 5% rates — but the contribution is made directly to a personal HSA (not via the employer's cafeteria plan).
- Federal savings: $8,750 × 22% = $1,925.
- State savings: $8,750 × 5% = $437.50.
- FICA savings: $0 (not applicable to direct contributions).
- Total immediate savings: $1,925 + $437.50 + $0 = $2,362.50 (rounded $2,363).
The direct route loses the $669 FICA layer that the payroll route captures. For most account holders who contribute directly, this is pure leakage — most employers can set up payroll HSA contributions on short notice through the benefits portal or HR. The federal and state deductions are still captured on Form 8889 attached to Form 1040, but the FICA savings is unrecoverable once the W-2 has withheld on the full wage.
Worked example 3 — 60-year-old self-only at the max + catch-up
A 60-year-old account holder with self-only HDHP coverage contributes the full $4,400 base limit + the $1,000 age-55+ catch-up = $5,400 total. Marginal federal 24%, state 5%, payroll route.
- Maximum contribution: $4,400 base + $1,000 catch-up = $5,400.
- Federal savings: $5,400 × 24% = $1,296.
- State savings: $5,400 × 5% = $270.
- FICA savings (payroll route): $5,400 × 7.65% = $413.10.
- Total immediate savings: $1,296 + $270 + $413.10 = $1,979.10 (rounded $1,979).
The catch-up adds $1,000 of additional deductible contribution beyond the base limit — at the 24% + 5% + 7.65% combined rate, that's $366.50 of additional first-year savings. Over the 10-year window between age 55 and the standard Medicare age 65, the cumulative catch-up captures up to $10,000 of additional contributions and roughly $3,665 of additional immediate tax savings.
Worked example 4 — excess contribution of $1,250 on family coverage
A 40-year-old account holder mistakenly contributes $10,000 to a family-coverage HSA when the 2026 limit is $8,750. The excess is $1,250.
- Maximum contribution: $8,750.
- Excess amount: $10,000 − $8,750 = $1,250.
- § 4973(g) 6% excise tax: $1,250 × 6% = $75 per year until corrected.
The 6% applies cumulatively — if the excess sits in the account for three years before correction, the cumulative tax is 6% × 3 = 18% = $225. The correction mechanism is a corrective distribution: request the HSA custodian to distribute the excess plus attributable earnings before the tax-filing deadline for the year of the excess (including extensions, generally October 15 of the following year). The corrective distribution removes the excess from the account WITHOUT the 6% tax for that year; the attributable earnings on the excess are taxable in the year of the original contribution.
Worked example 5 — 25-year-old at the self-only max, 30-year compounding
A 25-year-old account holder with self-only HDHP coverage contributes the full $4,400 limit and invests the balance at an expected 7% annual return for 30 years (to age 55) before any withdrawal.
- Contribution: $4,400.
- Growth multiplier: (1.07)^30 = 7.6123.
- Projected future value: $4,400 × 7.6123 = $33,494 (rounded).
- Lifetime tax-free growth: $33,494 − $4,400 = $29,094 of investment gains the account holder will never pay tax on, assuming the eventual withdrawal is for qualified medical expenses.
This is the long-horizon compounding lever. A single $4,400 contribution at age 25 grows to ~$33,494 by age 55 — all tax-free under § 223(e)(1). If the account holder contributes the max annually for 30 years, the cumulative effect is six figures of tax-free growth. The HSA-as-stealth-retirement strategy involves paying current medical expenses out-of-pocket and letting the HSA compound, then drawing it down in retirement for qualified medical expenses (Medicare premiums included) — preserving the tax-free withdrawal advantage indefinitely.
The payroll vs direct contribution decision
The single biggest planning lever the calculator surfaces is the payroll-vs-direct distinction. Payroll contributions through a Section 125 cafeteria plan save FICA (7.65%) in addition to federal and state income tax. Direct contributions save only federal and state. On a $8,750 family contribution at 22% federal + 5% state, the payroll route saves $3,029 while the direct route saves $2,363 — a $666 gap that is pure leakage avoidable by switching.
The mechanic: a Section 125 cafeteria plan election reduces W-2 wages before FICA withholding, so the contribution is excluded from FICA wages entirely. A direct contribution is made after the W-2 has already withheld FICA on the full wage; the federal and state income tax deduction is still captured on Form 8889 attached to Form 1040, but the FICA is unrecoverable. For most account holders, switching to payroll contributions is a 10-minute change through the employer's benefits portal or HR.
The last-month rule and testing period
§ 223(b)(8) allows an account holder who is HSA-eligible on December 1 to contribute the FULL annual amount (not the prorated amount based on months of eligibility) — BUT they must remain HSA-eligible for the entire following 12 months (the testing period). If the testing period is failed (e.g., they switch to non-HDHP coverage in March of the following year), the excess contribution above the prorated amount is included in gross income AND subject to an additional 10% tax under § 223(b)(8)(B).
The last-month rule is a powerful planning lever for late-year HDHP enrollees who want to capture a full year of HSA benefits. The trap: a job change in the testing period that includes a non-HDHP plan triggers the retroactive inclusion and 10% additional tax. Conservative practitioners advise using the pro-rata formula instead unless the account holder is certain about maintaining HDHP coverage for the full 12-month testing period.
Pro-rata partial-year contribution
If the account holder is HSA-eligible for only part of the tax year (e.g., starts an HDHP mid-year), § 223(b)(4) prorates the contribution limit by the number of months of eligibility, counted as of the FIRST day of each month. The account holder is treated as eligible for the full month if eligible on the first day.
Formula: prorated limit = (annual limit / 12) × months of eligibility.
Example: family coverage starting July 1, 2026 → eligible for 6 months (July through December) → prorated limit = ($8,750 / 12) × 6 = $4,375. The catch-up is also prorated for owners age 55+: $1,000 / 12 × 6 = $500.
The age-65 inflection — HSA acts like a Traditional IRA
At age 65, the § 223(f)(4) 20% additional tax on non-qualified withdrawals disappears. The HSA effectively becomes a Traditional IRA for non-medical purposes: ordinary-income taxable but no longer penalized. Qualified medical withdrawals remain fully tax-free at any age — including Medicare Part B and Part D premiums (but NOT Medigap).
This is the "HSA as stealth retirement account" planning angle: an HSA owner who pays current medical expenses out-of-pocket and lets the HSA compound for decades can withdraw post-65 for any purpose at ordinary rates, while qualified medical withdrawals remain tax-free. Save receipts indefinitely for qualified medical expenses paid out-of-pocket — reimbursement from the HSA can be taken decades later (no statute of limitations) as long as the expense was incurred after the HSA was opened. The receipt-archive strategy turns the HSA into a tax-free emergency fund accessible at any age without penalty.
HSA vs FSA — structurally different vehicles
HSAs and FSAs are both pretax health-spending accounts but differ in critical ways:
- Portability: HSA stays with the account holder forever; FSA is forfeited at employment separation.
- Rollover: HSA balance rolls year-over-year without limit; FSA is use-it-or-lose-it (with at most a $660 carryover or 2.5-month grace period at employer option).
- Investment: HSA balances above a custodian minimum can be invested in mutual funds and grow tax-free; FSA cannot be invested.
- Eligibility: HSA requires HDHP coverage; FSA does not.
- Age 65 status: HSA becomes Traditional-IRA-like; FSA has no equivalent inflection.
For long-horizon health planning and retirement preparation, the HSA is structurally superior. A "limited-purpose FSA" (dental/vision only) is HSA-compatible and is offered by most employers alongside the HSA — useful for dental and vision expenses that would otherwise reduce the HSA balance.
Common errors
- Direct contributions instead of payroll. Loses the 7.65% FICA savings layer — pure leakage. Switch to payroll through the employer's benefits portal.
- Mistaking a non-HDHP plan for an HDHP. Many plans labeled "high deductible" do not actually meet § 223(c)(2) thresholds. Always verify against the current-year IRS minimum deductible and maximum OOP.
- Disqualifying secondary coverage. A spouse's general-purpose health FSA covering the account holder, Medicare Part A enrollment, or VA medical coverage in the prior 3 months all disqualify. Switch to a limited-purpose FSA for HSA compatibility.
- Excess contribution from a job change. Switching from family to self-only coverage mid-year requires recalculating the limit; the pro-rata or last-month rule applies. Excess triggers § 4973(g) 6% per year until corrected.
- Failing the last-month testing period. A late-year HDHP enrollee who uses the last-month rule to contribute the full year and then drops HDHP coverage in the following year owes a retroactive 10% additional tax on the excess above the prorated amount.
- Forgetting Medicare Part A automatic enrollment. Social Security recipients age 65+ are automatically enrolled in Medicare Part A, which disqualifies further HSA contributions. The HSA balance can still be drawn for qualified medical expenses — including Medicare Part B and Part D premiums — but no new contributions are allowed.
- Confusing Medicare Part B/D with Medigap. Medicare Part B and Part D premiums are qualified medical expenses; Medigap (Medicare supplement insurance) premiums are NOT. The distinction trips up many retirees.
- Not saving receipts. Out-of-pocket qualified medical expenses can be reimbursed from the HSA decades later (no statute of limitations), but only if the receipt is retained. A receipt archive is the highest-leverage administrative habit for HSA owners.
This calculator is a planning tool, not advice. The 2026 contribution limits and HDHP thresholds are inflation-projected estimates pending the IRS's final May 2025 Revenue Procedure release; verify against the published figures before relying on them for tax-filing purposes. State conformity to the federal above-the-line HSA deduction varies — California and New Jersey notably do not conform. For an actual tax filing, run the figures through Form 8889 and IRS Publication 969 or, better, a CPA who handles HSA planning as a regular practice. Tools, not advice.
FAQ
Common questions
Edge cases and clarifications around federal hsa contribution & tax benefit calculator.
An HSA is the only account in the Internal Revenue Code with three independent tax advantages stacked: (1) CONTRIBUTION DEDUCTION under IRC § 223(a) — the contribution is an above-the-line deduction available whether the taxpayer itemizes or takes the standard deduction; if the contribution is routed through a Section 125 cafeteria plan payroll deduction, it is also excluded from FICA wages, saving an additional 7.65%. (2) TAX-FREE GROWTH under § 223(e)(1) — interest, dividends, and capital gains inside the HSA accumulate without annual taxation, identical to a Roth IRA but with one extra advantage: the growth cushion is fully refundable through qualified medical withdrawals rather than just preserved as principal. (3) TAX-FREE QUALIFIED MEDICAL WITHDRAWALS under § 223(f)(1) — withdrawals used for qualified medical expenses (defined in § 213(d)) are excluded from gross income at any age. Traditional IRAs get advantage 1 only; Roth IRAs get advantages 2 and 3; only the HSA stacks all three.
Resources
Links marked sponsoredmay earn The Fennec Lab a commission. They do not affect the calculator's output. See disclosures.
- Cornell Legal Information Institute — 26 U.S.C. § 223 — statutory text of IRC § 223 — the master Health Savings Account rule including the HDHP definition under § 223(c)(2), the annual contribution limits under § 223(b)(2), the catch-up under § 223(b)(3), the last-month rule under § 223(b)(8), the tax-free growth under § 223(e)(1), the tax-free qualified-medical withdrawals under § 223(f)(1), and the 20% additional tax on non-qualified withdrawals before age 65 under § 223(f)(4)
- Cornell LII — 26 U.S.C. § 213(d) (qualified medical expense) — IRC § 213(d) — the definition of qualified medical expense incorporated by reference into § 223(f)(1) for tax-free HSA withdrawals; covers diagnosis, cure, mitigation, treatment, or prevention of disease, plus dental, vision, mental health, prescription drugs, certain long-term-care premiums (age-capped), and Medicare Part B and Part D premiums (but NOT Medigap)
- Cornell LII — 26 U.S.C. § 4973(g) (excess contribution excise tax) — IRC § 4973(g) — the 6% per-year excise tax on excess HSA contributions, applied cumulatively each year until the excess is removed by a corrective distribution
- IRS Publication 969 — Health Savings Accounts and Other Tax-Favored Health Plans — IRS plain-English guide to HSAs, HRAs, FSAs, MSAs, and other tax-favored health plans — the authoritative practitioner reference for HSA contribution mechanics, HDHP eligibility, qualified medical expenses, and reporting
- IRS Form 8889 — Health Savings Accounts — IRS Form 8889 — attached to Form 1040 to report HSA contributions (Part I), distributions (Part II), and the additional tax on non-qualified withdrawals (Part II); also the form used to compute the prorated contribution limit under the last-month rule
- IRS — Revenue Procedure (annual HSA / HDHP inflation adjustments) — Annual IRS Revenue Procedure publishing the inflation-adjusted HSA contribution limits (§ 223(g)) and HDHP minimum deductible / maximum out-of-pocket thresholds (§ 223(c)(2)) — typically released in May of the prior year (e.g., 2026 figures release in May 2025)
- IRS — HSA FAQ and Notices archive — IRS topic page on HSAs with notices, FAQs, and prior-year revenue procedures — useful for cross-referencing inflation-adjusted figures and tracking ACA-era amendments to § 223(f)(4) (the 10% to 20% additional-tax change)
- Affordable Care Act § 9004 — HSA additional-tax increase — Patient Protection and Affordable Care Act § 9004 — raised the IRC § 223(f)(4) additional tax on non-qualified HSA withdrawals from 10% to 20% effective for distributions in tax years beginning after December 31, 2010