Whether you’re still saving for your later years or you just joined the ranks of retirees, you’re probably underestimating one major retirement expense: how much money you’ll need to pay for your healthcare.

The numbers are big. A man retiring at 65 today with a typical lifespan will need $189,687 (in today’s dollars), on average, to pay healthcare costs not covered by insurance; a woman will need $214,565. That's according to projections from HealthView Services, a healthcare cost data provider. And those estimates don’t include the expense of long-term care if you have a chronic condition or disability.

One reason people get the number wrong is that they think that Medicare, the government health insurance program for those 65 and older, will cover all their needs, says Ron Mastrogiovanni, HealthView’s CEO. But Medicare isn’t free. You pay premiums, deductibles, and co-pays. If you want coverage for prescription drugs, dental, vision, or hearing care, you have to pay out of pocket or buy a supplemental policy or additional insurance.

More on Retirement Planning

The good news is that there's a lot you can do to manage the costs. Here, three ways to ensure your healthcare expenses are covered:

1. Create a Healthcare-Investment Account
Once you have a handle on your expected healthcare costs, set up a dedicated account for healthcare savings separate from your other retirement money. Earmarking money for a specific goal makes it more likely that you’ll be successful saving what you need, Mastrogiovanni says. You can use an individual retirement account. Or, if you have a high-deductible health plan (insurance with a deductible of at least $1,350 per year for an individual or $2,700 for a family), you can open a health savings account. HSAs have a triple tax advantage: The money you contribute reduces your taxable income. If you spend it on qualified healthcare expenses, you aren’t taxed on it. And growth within the account is free from capital gains taxes. You can contribute up to $3,450 as an individual or $6,900 for a family annually, and an additional $1,000 per year if you’re age 55 or older.

2. Consider Long-Term-Care Insurance
More than half of people who are 65 or older today will require long-term care at some point. A traditional long-term-care insurance policy can help cover the cost of home care, assisted living, or a nursing home. But it’s expensive (averaging $3,490 a year in premiums to cover $150 a day in nursing-home costs each for a 60-year-old couple), the policies can be confusing, and a number of companies offering plans have dropped out of the market. A less costly option is a short-term policy with more limited benefits. A 60-year-old might pay $860 annually for a policy that provides $120 a day for 360 days in a nursing home, plus $900 a week for a year of home care, according to the American Association for Long-Term Care Insurance.

3. Take Care of Your Health
You’ll have better quality of life if you maintain good health. There’s a financial benefit, too. Although your total medical costs rise the longer you live, your annual outlay is far less when you’re fit. A person in poor health spends an average of about $1,700 a year more on out-of-pocket medical expenses than someone in very good health, according to the Kaiser Family Foundation. Devoting less of your budget to health bills frees up money to spend on activities that make retirement more enjoyable.

Editor's Note: This article also appeared in the March 2018 issue of Consumer Reports magazine.