Many dogs are simply not suited to living in small spaces. They need space to run around and lots of exercise, so they won't be happy in a tiny, third-floor apartment. However, research shows that some dogs can live perfectly happy lives in apartments, it's just crucial to pick the right breed.

In general, large dogs aren't suited to apartments for the obvious reason that they won't fit comfortably in a small space. Some small dogs are also not suited to living in small spaces, because of their high-energy levels. Here are five of the best breeds of dog to look for if you're thinking of getting an apartment companion, according to DogTime and Martha Stewart.

English Bulldogs

Even though bulldogs are medium-sized dogs, they are notoriously lazy and cuddly. They need little more than a short daily walk to get out all the energy they have, so they won't run around your apartment wreaking havoc. Make sure to keep them in a cool place, because they tend to overheat.

Dachshunds

These silly pups, often known as "wiener dogs," are high energy but tiny, so they can get all the exercise they need indoors.

Havaneses

These small dogs cling to their owners, and love to play. This makes them perfect apartment dogs because they rarely take any space for themselves.

Boston Terriers

If you're an active person, this small, active dog is a perfect match. They need lots of exercise to stay content, but are small enough to live comfortably in an apartment.

Lhasa Apso

Though these long-haired dogs need lots of grooming, they are small dogs with big-dog mentality. They're quite independent and small. They require early socialization, because they were historically used as guard dogs and can be aggressive, but with proper training, can be the perfect friendly pup for your apartment.