HSA and Medicare at 65: Apply Late and Part A Still Starts 6 Months Back, Taking $458.33 a Month Off a Self-Only 2027 HSA Limit

An HSA limit is zero from the first month of Medicare, and premium-free Part A starts up to 6 months before the month you apply for it or for Social Security (never before the month you turn 65). For a self-only plan with the catch-up the 2027 limit is $5,500, $458.33 a month, so someone born in June who applies in December has $2,291.67, and $3,208.33 put in is an excess charged 6% a year. Starting an HSA on December 1 at 64 can backfire: Medicare inside the 13-month testing period turns most of the contribution into income plus 10%. Worked from 26 U.S.C. 223, Medicare.gov, 42 CFR 406.6 and IRS Publication 969.

Published October 28, 2026

An HSA is open only to someone who is not on Medicare: the tax code sets the contribution limit to zero for the first month you are entitled to Medicare and every month after it (26 U.S.C. 223(b)(7)). The rule people trip over is not the age-65 one. It is that Part A, the premium-free hospital coverage, starts up to 6 months before the month you sign up for it or apply for Social Security, so waiting to apply does not buy 6 more months of HSA contributions. The figures below come from the engine behind the HSA contribution limit calculator, which reproduces the examples in IRS Publication 969, with the 2027 amounts for a self-only plan and the $1,000 catch-up for people 55 and older: $5,500 a year, $458.33 for each month before Medicare starts.

The short version. If you apply for Part A or Social Security more than 6 months after the month you turn 65, Part A starts 6 months back from the application, so your last HSA contribution month is the month before that. If you apply sooner, it starts in the month you turn 65. Each month Medicare starts earlier removes $458.33 from a 55-plus self-only limit in 2027, and anything you put in for those months is an excess contribution, charged 6% a year until you take it out.

The year you turn 65: your birth month sets the limit

For someone who is on Medicare from the month of their 65th birthday (Medicare counts you as 65 the day before the birthday, so a birthday on the 1st counts as the month before), the 2027 limit is one twelfth for each month before it. The last-month rule is no help here, because it needs you to be eligible on December 1 and you are not.

The 2027 HSA limit for someone who turns 65 in 2027, by birth month, self-only and family coverage, with the age-55 catch-up
Born in 1962, inMedicare startsSelf-onlyFamily
JanuaryJanuary 2027$0$0
FebruaryFebruary 2027$458.33$833.33
MarchMarch 2027$916.67$1,666.67
AprilApril 2027$1,375$2,500
MayMay 2027$1,833.33$3,333.33
JuneJune 2027$2,291.67$4,166.67
JulyJuly 2027$2,750$5,000
AugustAugust 2027$3,208.33$5,833.33
SeptemberSeptember 2027$3,666.67$6,666.67
OctoberOctober 2027$4,125$7,500
NovemberNovember 2027$4,583.33$8,333.33
DecemberDecember 2027$5,041.67$9,166.67

Example from IRS Publication 969: turned 65 in July, self-only, with the catch-up: $5,300 × 6 ÷ 12 = $2,650 (2025 amounts). If you are on Medicare and your spouse is not, they are not held to a shared split: the married-people rules apply only when both spouses are eligible (Publication 969).

Applying later does not buy more months

Premium-free Part A starts 6 months back from when you sign up or apply for Social Security benefits, and can't start before the month you turned 65 (Medicare.gov; 42 CFR 406.6(d)(4)). IRS Publication 969 says contributions for months of retroactive coverage are excess contributions. For a person born in June 1962, who turns 65 in June 2027:

For someone born in June 1962 with a self-only plan and the catch-up, the month they apply for Part A or Social Security, when Part A starts, the last month an HSA contribution counts, the 2027 limit, and the excess if the full 2027 amount had been put in
Apply inPart A startsLast HSA month2027 limitExcess if $5,500 went in
June to December 2027June 2027May 2027$2,291.67$3,208.33 (6% = $192.50 a year)
January 2028July 2027June 2027$2,750$2,750 (6% = $165 a year)
February 2028August 2027July 2027$3,208.33$2,291.67 (6% = $137.50 a year)
March 2028September 2027August 2027$3,666.67$1,833.33 (6% = $110 a year)
April 2028October 2027September 2027$4,125$1,375 (6% = $82.50 a year)
May 2028November 2027October 2027$4,583.33$916.67 (6% = $55 a year)
June 2028December 2027November 2027$5,041.67$458.33 (6% = $27.50 a year)
July 2028January 2028December 2027$5,500none

Read it from the top: applying anywhere from June to December 2027 gives the same Part A start (June 2027), so the 2027 limit is $2,291.67, and the first 6 months of waiting add nothing. Each month of delay after that gives back one month of eligibility ($458.33). A person who applied in December 2027 after putting in the whole $5,500 would have $3,208.33 over the limit, taxed at 6% ($192.50) for each year it stays in. Withdrawing the excess and its earnings by the due date of the return (with extensions) avoids the tax, and the earnings are taxed as other income (Form 8889 instructions).

Medicare.gov gives the same practical advice: if you have an HSA, you and your employer should stop contributing 6 months before you retire or apply for Social Security (or Railroad Retirement) benefits. The same look-back applies when you apply for Social Security itself, because that application also starts Part A. This table assumes premium-free Part A; if you have to buy Part A, the rules differ and are not modelled here.

Starting an HSA at 64: the last-month rule can backfire

The last-month rule lets you contribute the full-year amount if you are eligible on December 1, but you must stay eligible through December 31 of the following year, 13 months (26 U.S.C. 223(b)(8)). Medicare entitlement ends eligibility, so if Medicare starts inside that period the contributions that were possible only because of the rule become income. A worked case, from the engine: a person born in June 1962 who starts a self-only HDHP on December 1, 2026 can put in $5,400 for 2026 (the $4,400 limit plus the $1,000 catch-up). Medicare starts in June 2027, inside the testing period, so what counts as 2026 eligibility is one month: $450. The other $4,950 is added to 2027 income, plus a 10% additional tax of $495.

The IRS publications do not print a Medicare example of the testing period. The conclusion rests on the statute's own words: failing to be an eligible individual in any month of the period counts, except for death or disability, and a person entitled to Medicare is not eligible. Whether an HSA is worth opening at 64 for other reasons is a separate question; this only shows what the last-month rule costs if Medicare is coming.

What this does not cover

It is the arithmetic of the rule, not advice on when to sign up for Medicare or stop contributing. It assumes one person with a self-only plan (the calculator handles family coverage, employer contributions and spouses), 2027 amounts and a birth year of 1962 for the tables (the answer depends only on the birth month and the application month), and premium-free Part A. It does not model Part A that is bought, Medicare based on disability or kidney failure, someone already on Medicare for another reason, or a spouse's own timing. The statute and the Form 8889 instructions speak of any entitlement to or enrollment in Medicare; this guide follows the Part A start date because that is the one with the retroactive rule. Confirm your own dates with Social Security and your HSA custodian.

Sources

This guide is general information, not tax, legal, or financial advice. Figures are estimates, and rules and rates change — check the sources cited above for the current details, and consider a qualified professional for your own situation.