Social media is overflowing with amusing videos of pudgy pooches and corpulent kitties, but the cost of treating their health problems is no laughing matter for their owners.

PetPlan, a provider of health insurance for animal companions, considers obesity the top health threat to pets in 2017, according to Dr. Ernie Ward, Petplan Veterinary Advisory Board member and founder of the Association for Pet Obesity Prevention. The association estimates that more than half the nation’s cats and dogs are overweight.

Like with their human owners, eating right and exercising will help pets shed those extra pounds.

“In addition to daily exercise, swap fatty treats for lower-calorie options, or better yet opt for praise and playtime instead of snacks,” Ward said in a press release. “And know your pet’s calorie count -- ask your vet how many calories your pet needs each day, and stick to that number.”

Get Breaking News Delivered to Your Inbox

Figuring out the ideal weight for a dog or cat can be tricky because each animal is unique. However, as a general rule of thumb, dogs and cats should have a tucked waist with ribs that can felt though not seen.

“When there is no longer a visibly tucked waist, or you are starting to feel excessive fat over the ribs, spine, base of tail, neck, limbs, etc., you should consult with your veterinarian about a weight loss plan,” said PetPlan Veterinary Manager Elyse Donnarumma in a statement.

Here are some common obesity-related ailments and their costs.