Having a ruff night?

Sleeping with your dog may actually be beneficial to your sleep patterns, a study reveals.

Mayo Clinic researchers conducted a study to see whether a dog’s presence in the bedroom would disturb a person’s sleep.

The study observed 40 healthy adults without sleep disorders occupying the same bedroom as their dogs, who were no younger than 6 months old, for seven nights. All subjects wore an accelerometer that tracked sleep activity.

The findings showed that those who let their pooches — whether big or small — sleep in their bedrooms had an easier time snoozing than those who did not.

“Most people assume having pets in the bedroom is a disruption,” Lois Krahn, a sleep medicine specialist at the Center for Sleep Medicine on Mayo Clinic’s Arizona campus, said in a study’s release. “We found that many people actually find comfort and a sense of security from sleeping with their pets.”

While a furry friend in the bedroom can aid in a better night’s rest, researchers warned that allowing a dog on your bed will have the opposite effect, according to their findings.

“Today, many pet owners are away from their pets for much of the day, so they want to maximize their time with them when they are home,” Krahn said. “Having them in the bedroom at night is an easy way to do that. And, now, pet owners can find comfort knowing it won’t negatively impact their sleep.”