Americans are in a prolonged sexual dry spell, and that could have long-range repercussions.

This should be a golden age for sex — if not the swinging-from-the-chandelier kind, then at least the regular, reliable fun type. The economy is booming, and America, and the world, are safer than ever. Young people can find willing mates just by swiping on their phones.

It’s a cushy, luxurious time. So why aren’t we naked and rolling around in bed to celebrate?

Speculation is rampant: We get our dopamine hits — the feel-good chemical released in your brain — from “likes” on social media. We watch too much porn, and it desensitizes us to the actual act. We Netflix too much and fail to “chill.” We worry too much about Donald Trump.

For young people, the explanation of why they’re not doing it could be the most obvious. Writing about the sex recession for The Atlantic, Kate Julian points out: “For a quarter century, fewer people have been marrying, and those who do have been marrying later.”

For all the portrayals of the single life in books and movies as exciting, it has always been true that married people simply have more sex. Julian notes that the number of people shacking up has not increased along with the fall in marriage rates. In other words, it’s not that people are getting together and just not making it official; they’re not coupling up at all.

Yet the reasons are less important than the consequences. A sexless society is a dying one, and not only for the obvious reason that sex produces babies to replenish the population.

Sex serves as a bonding agent between people in relationships, and when they stop having it, or have it a lot less, that affects the kind of connections they are forming. That loss of intimacy is a big problem.

Common wisdom about sex drying up in marriages has always been that it’s a hurdle to overcome. Yet we’re not sounding the alarm on the wider ramifications.

Fact is, sex and happiness have a direct link. When older adults stop having sex, their happiness levels decrease: A 2017 study out of Florida State University found that the “afterglow” of sex lasts 48 hours and played a role in keeping couples bonded and happy.

Sexual well-being is also closely tied to overall well-being. A drop in sex can be a sign of other things going wrong. Harvard Medical School’s “Harvard Heart Letter” reported in 2010 that “for men, having sex once a month or less can be a worrisome sign of cardiovascular disease.”

Sex is a reliever of stress. It has been tied to better sleep and even lowering some cancer risks. If we want a well-adjusted, stable, emotionally healthy population, sex goes a long way toward securing that.

Then there’s the violent outbursts of the sexless. The word “incels,” which means someone who is “involuntarily celibate,” entered our lexicon after two mass murders by incel men.

These “incels” take to forums on the internet to complain about “Chads” and “Stacys,” people who, in their minds, are getting all the sex they are not. The joke, of course, is that the Chads and Stacys aren’t doing it much either.

Such abstinence is unhealthy. Debra Herbenick, of the Indiana University Bloomington School of Public Health, says “the anxiety of unfulfilled desire, coupled with the pressure to have sex — whether it’s societal or self-inflicted — can become a vicious cycle.” But the decline in sex for non-incels shouldn’t be treated casually, either.

How do we break the cycle? There are so many articles on how to get sex going again, but the fact is there’s no magic solution other than just prioritizing it — and doing it. There are few things that feel good that are also good for you; we don’t need a government program to show us how or an ad campaign on the subway to embarrass us into it.

We just need to treat sex like any other self-help remedy. You go to the gym, you moisturize before bed; having sex should be seen similarly as part of a healthy lifestyle.

For singles, that means looking up from our phones and going on those dates, instead of just swiping.

For those in a relationship, it means emphasizing sex, even if it’s easier to just tear through a new series on Netflix.

And if it’s a Donald Trump obsession that’s stopping you from getting it on, you’re clearly taking in too much news and political tweeting. Sex is not the side dish in a good relationship — it’s the main course. Don’t skip it.

Go do it now, and walk around smiling tomorrow.