The following is an excerpt from the forthcoming book “Retirement Bites: A Gen X Guide to Securing Your Financial Future,” by Kerry Hannon and Janna Herron.

Are you freaking out about retirement?

That’s what many Gen Xers may be feeling. The oldest of the generation have reached that magical age of 59½ when you can dip into retirement accounts without getting dinged by an early withdrawal penalty. The youngest Gen Xers have another 20 years to go before they become eligible for Medicare. That’s not as far away as you might think.

But you’re probably still busy thinking about all the other responsibilities coming down the pike, like paying for your kids’ college or caring for your aging parents. So maybe saving enough for a comfortable retirement of your own has taken a back seat. Or maybe you feel like you’re only slightly behind—there’s still time, right? Or maybe, just maybe, you’re up late with a calculator and a 401(k) statement, not sure how to make it all make sense.

You’re not alone.

1 in 4 Gen Xers don’t have a retirement account at all, while the typical household for the generation has just $40,000 in retirement savings.

More than 3 in 5 Gen Xers are not confident in their ability to achieve a dream retirement, and nearly half believe they could outlive their savings.

The majority of the 64 million Americans born between 1965 and 1980 expect to postpone their retirement.

Learn more: Average savings by generation: How do you compare?

“Gen Xers have far less confidence in their financial futures than other generations,” said Kelly LaVigne, vice president of consumer insights at Allianz Life.

No kidding. But here’s the thing. Despite being tagged as slackers growing up, that’s not why many of us are behind on retirement readiness. Actually, some pretty big forces were working against us — namely, vanishing company pensions and the slow evolution of the 401(k) into “the” retirement savings vehicle.

A 2021 report found that only 14% of us have a pension plan, as more companies closed these plans to new employees. Pensions, or defined benefit retirement plans, really began to phase out in the mid-1980s when Gen X was just entering the workforce. At the same time, more employers were adding 401(k)s. Still, these 401(k)s were not the robust savings vehicles they are today. For a long time, they were largely viewed as supplemental to pensions, and Congress did not foster the growth of these plans from their inception through the mid-1990s, right when the earliest Gen Xers needed to start saving.

It wasn’t until the oldest of us were 36 — in 2001 — that Congress increased the total maximum contribution and loosened rules around the pretax cap for employee contributions. Five years later — when the youngest of us hit our mid-20s and the oldest were over 40 — Congress finally passed legislation that encouraged employers to automatically enroll workers into 401(k) plans and allowed employers to provide default investments, two efforts to increase participation as it became more obvious that the 401(k) was a main pillar for a comfy retirement.

Learn more: What is a 401(k)? A guide to the rules and how it works. 

Those efforts were maybe too late for us. The average Gen Xer started saving for retirement at 31, while millennials and Gen Z got the savings message much earlier.

As if our meager savings weren’t bad enough, Gen X can also look forward to much lamer health benefits than the baby boomer generation.

Why is this important? Healthcare spending becomes a huge expense in retirement, especially in the latter years. And while Medicare is awesome, it doesn’t cover every penny. There’s a premium for Medicare Part B, the medical insurance part. There’s also a deductible, copays, and co-insurance. Some retirees now purchase a Medigap plan to pay for these out-of-pocket costs, but it used to be that some employers offered supplemental insurance that covered these instead. Not much do anymore.

“There’s just a whole shift that kind of caught up with Gen X, and I think that they don’t realize,” said Judith Brown, a Gen Xer and a certified financial planner.

Not to pile on, but add to all that the growing, unaddressed concerns over Social Security. The reserves for the social program that retirees depend on are expected to run out sometime in the early to mid-2030s, when benefits to seniors will be cut by around 20%. That’s such heinous timing. The oldest of Gen X will be turning 70.

Tellingly, the financial planners we interview regularly model out what a client’s retirement would look like if Social Security benefits are cut. You know, just in case.

Brian Ellenbecker, a certified financial planner and financial adviser at Shakespeare Wealth Management in Pewaukee, Wis., told us: “When planning, making an adjustment for reduced future benefits is prudent.”

But it’s so hard to plan for any of this when big things are in the way. Our average credit card debt is over $9,200 — almost 40 percent more than boomers and millennials. Those of us with student loans average over $44,000 of debt — the most of everyone. And we have to deal with not just our student loans, but maybe even a Direct PLUS loan we took out for our kids’ education.

Even if Brenda and Brandon leave the nest, that doesn’t mean they aren’t depending somewhat on our wallets and credit cards. Many of us are sandwiched between our children and aging parents, who require more of our time and financial resources.

You may feel like time is running out, especially if the economy falters again.

But we’re here to say it’s not time to give up. Gen Xers, the answer is simple. The answer is not “I don’t know,” as Lelaina said in “Reality Bites.” The answer is to rise to the challenge.

Ethan Hawke sits with Winona Ryder in a scene from the film 'Reality Bites', 1994. (Photo by Universal/Getty Images)

Ethan Hawke sits with Winona Ryder in a scene from the film ‘Reality Bites’, 1994. (Photo by Universal/Getty Images) · Universal Pictures via Getty Images

Our generation is nothing but resilient and undaunted, traits borne from our earliest years as latchkey kids who weathered divorces, rode bikes — without helmets! — in search of pirate booty and dead bodies, and subsisted on Spam, Pop-Tarts, and Stouffer’s microwavable mac and cheese while home alone. We ushered in a music revolution. We jump-started the computer age. We raged against the machine.

In fact, we’ve already bounced back from one major whammy — the Great Recession. While Gen X lost the most wealth of all ages in the years after 2008, we also were the first generation to recover it all 10 years later, especially in housing equity. That equity has only grown since housing’s go-go years during and after the pandemic. That’s great news for the 72 percent of Gen Xers who own their homes.

We’re also not a monolith. Depending on where you fall in the Gen X spectrum, your retirement outlook may differ. For instance, older Gen Xers are more likely to have pension plans than younger ones. But later Gen Xers didn’t feel the pain of the tech bust in the early 2000s because many were either in school or had very little money invested in the stock market.

Dig deeper: How to start investing: A 6-step guide

“With Gen X, you’ve got to split us right down the middle. You’ve got young Gen X and older Gen X. And they hit things very differently,” Bradley Schurman, author of “The Super Age,” who was born in 1974, told us.

Plus, if you’re in the younger Gen X set, your retirement vision may get a boost from the Great Wealth Transfer. The other big plus is that most of us are in our prime earning years.

With some finagling here and adjustments there to your budget, priorities, and mindset, you can get on track to a better retirement outlook. And that’s where we come in. We’re stoked to help you find your way.

Kerry Hannon is a columnist for Yahoo Finance. Janna Herron is a former editor and columnist for Yahoo Finance.

Sign up for the Mind Your Money newsletter

Click here for the latest personal finance news to help you with investing, paying off debt, buying a home, retirement, and more

Read the latest financial and business news from Yahoo Finance