Medicare is funded through a mix of payroll taxes, premiums, and general tax revenue

Medicare doesn't come from a single source. Instead, the program pulls money from four main places: taxes taken from your paycheck while you work, monthly premiums you pay as a beneficiary, taxes on investment income, and money from the federal government's general budget. Understanding where the money comes from helps explain why costs vary between different parts of Medicare and why your premiums change year to year.

The way Medicare is funded has stayed roughly the same structure since 1965, though the amounts and percentages shift as healthcare costs rise and the number of people on Medicare grows. Each funding source pays for different parts of the program, which is why Part A (hospital coverage) works differently from Part B (doctor visits) or Part D (prescriptions).

Key Takeaways

  • Payroll taxes fund Part A (hospital insurance), taken from both employees and employers at 2.9% of wages combined, with no income limit.
  • Part B (medical insurance) and Part D (prescription drugs) are funded by a combination of your monthly premiums and federal general revenue, meaning taxpayers who don't use Medicare help pay for those who do.
  • Part A has its own trust fund that collects payroll taxes and pays out hospital bills, while Parts B and D draw from the general federal budget each year.
  • Higher-income beneficiaries pay higher premiums for Parts B and D, a system called income-related monthly adjustment amounts (IRMAA).
  • Medicare's funding sources are separate from Social Security, even though both are deducted from paychecks.

How payroll taxes fund Part A (hospital insurance)

Part A is funded almost entirely by the Medicare payroll tax, which comes out of your paycheck while you work. Both you and your employer pay 1.45% each, for a total of 2.9% of your wages. This tax has no income cap — it applies to every dollar you earn, no matter how much you make. Self-employed people pay both the employee and employer portions, for a total of 2.9%.

These payroll taxes go into the Hospital Insurance Trust Fund, a separate account that collects the money and pays out hospital bills for Medicare beneficiaries. The trust fund is designed to be self-sustaining: the taxes coming in should roughly match the hospital costs going out. When more people retire and fewer people are working and paying taxes, the trust fund can shrink, which is why you may hear news reports about the trust fund's solvency.

If you earned income before age 65, you paid into Part A even if you weren't yet a Medicare beneficiary. Once you turn 65 and enroll in Medicare Part A, those years of payroll tax contributions count toward your coverage — you don't pay a separate premium for Part A if you or your spouse paid Medicare taxes for at least 10 years.

How premiums and federal taxes fund Part B (medical insurance)

Part B covers doctor visits, outpatient care, and some preventive services. It is funded by two sources: your monthly premium and federal general revenue (money from income taxes and other federal sources). In 2024, the standard Part B premium is $164.90 per month, though the exact amount changes each year based on projected costs.

Your premium covers roughly 25% of Part B costs. The other 75% comes from the federal government's general budget — meaning all taxpayers, including those who don't use Medicare, help pay for Part B. This is different from Part A, which is funded only by people who paid the Medicare payroll tax.

If your income is above a certain threshold, you pay a higher premium through income-related monthly adjustment amounts (IRMAA). In 2024, single filers with income over $97,000 and married filers with income over $194,000 pay more. The higher your income, the higher your Part B premium, up to a maximum. These income thresholds are adjusted each year.

How Part D (prescription drug coverage) is funded

Part D premiums vary by plan because private insurance companies run the plans, not Medicare directly. However, the federal government subsidizes Part D heavily — it pays roughly 75% of the cost of covered drugs for most beneficiaries, while you pay the remaining 25% through your monthly premium and out-of-pocket costs at the pharmacy.

Like Part B, Part D is funded through federal general revenue plus your monthly premium. The exact premium you pay depends on which plan you choose, but the federal subsidy is the same across all plans. If your income is above the IRMAA threshold, you also pay a higher Part D premium on top of your plan's base premium.

Why Medicare costs keep rising and how that affects funding

Healthcare costs grow faster than wages and general tax revenue, which creates a funding gap over time. The Part A trust fund is projected to eventually pay out more money than it takes in if nothing changes, though the exact year this happens shifts based on economic conditions and healthcare inflation. When the trust fund runs low, it doesn't mean Medicare stops — it means the trust fund can only pay about 89% of costs from incoming taxes, and Congress would need to act to close the gap.

Part B and Part D don't have the same solvency problem because they draw from the federal budget each year. However, the total cost of Medicare to the federal government keeps growing as more people turn 65 and live longer. This is why your premiums and out-of-pocket costs tend to increase year to year.

How income affects what you pay into Medicare

While you work, you pay the same Medicare payroll tax rate as everyone else — 2.9% — with no income limit. However, once you are on Medicare, your income determines your premiums through IRMAA. The higher your income, the more you pay for Part B and Part D.

Income is measured using your modified adjusted gross income (MAGI) from two years prior. So in 2024, Medicare uses your 2022 tax return to set your premiums. If your income drops significantly — for example, because you retired or had a major life change — you can request that Medicare recalculate your premiums using your current year's income instead.

The difference between Medicare funding and Social Security funding

Medicare and Social Security are separate programs with separate funding sources, even though both are deducted from your paycheck. The Medicare payroll tax (2.9%) funds Medicare. The Social Security payroll tax (12.4% combined, with a wage cap) funds Social Security retirement and disability benefits. They are collected together on your pay stub, but they go into different trust funds and pay for different programs.

Understanding this distinction matters if you hear news about one program's funding crisis — it doesn't automatically affect the other. A change to Social Security funding would not change Medicare, and vice versa.

Frequently Asked Questions

Does everyone pay the same Medicare payroll tax?

Yes, while you work. Employees and employers each pay 1.45%, and self-employed people pay 2.9%. There is no income cap, so high earners pay the same percentage as low earners. However, high-income earners pay higher premiums once they are on Medicare through IRMAA.

What happens if the Part A trust fund runs out of money?

The trust fund would not disappear overnight. If incoming payroll taxes no longer cover all hospital costs, the fund can pay roughly 89% of bills from tax revenue alone. Congress would need to act — either by raising payroll taxes, reducing payments to hospitals, or some combination — to close the gap. This has happened before; Congress adjusted the system in 1983.

Can I opt out of paying Medicare taxes while I work?

No. The Medicare payroll tax is mandatory for all employees and employers. Some religious groups and certain government employees have limited exemptions, but most workers cannot opt out.

Why do some people pay higher Medicare premiums than others?

If your income is above the IRMAA threshold, you pay more for Part B and Part D. Medicare uses your income from two years prior to set these higher premiums. The thresholds and amounts change each year, and you can request a recalculation if your income drops due to retirement or a major life event.

Is my Part B premium the same every year?

No. The standard Part B premium changes annually based on projected healthcare costs and program expenses. In recent years, premiums have increased, though the exact increase varies year to year. Your premium may also change if your income crosses an IRMAA threshold.