It’s a bit steep, that big sleep.

New research reveals you will pay more to meet your maker in or near New York City — particularly in the Hamptons and other parts of Long Island.

It costs on average between $2,124 and $7,422 to be buried or cremated in the US, according to a new funeral cost data service that collected end-of-life prices in the country’s 100 biggest metro areas.

However, on much of Long Island — an expensive place to live — it generally costs much more to die. That’s because two of its counties have the highest end-of-life expenses in the nation, Funeralocity.com determined.

In Nassau and Suffolk counties, the database found, the average cost for a full-service burial is $9,744, and an average cremation comes to $3,547.

Those end-of-life costs are 31% to 67% higher in Nassau and Suffolk counties than the national averages, Funeralocity said.

“It’s actually more expensive on Long Island than New York City,” said Funeralocity founder Ed Michael Reggie.

But New York City is no bargain, either. Its average burial costs are $8,256. That’s about 11% higher than the national average, per the data.

Staten Island, Queens and Manhattan are the priciest places in the city to be interred, the survey found. They are respectively 19.9%, 14.1% and 12.6% higher than the national average.

Michael Lanotte, executive director of the New York State Funeral Directors Association, said there’s a reason end-of-life costs tend to run higher on Long Island.

After speaking with several local funeral home directors, he concluded that Long Islanders tend to have traditional attitudes toward burials. In those two counties, Lanotte added, most tend to want all the burial services, which drives up costs.

The Federal Trade Commission, as part of its funeral rule, says consumers should buy only the services they want.

“You have the right to buy separate goods — such as caskets — and services such as embalming or a memorial service. You do not have to accept a package that may include items you do not want,” the FTC wrote. For instance, the FTC said some states don’t require embalming.

Reggie and Lanotte both said pre-planning burial or cremation is essential to avoid overpaying. That way, they say, decisions are made without emotion, so the bereaved are much more likely to obtain the best prices.