A few years ago, a team of scientists swept 50 homes in Raleigh, North Carolina for bugs—not the surveillance kind, but the biological one. Armed with headlamps, forceps, nets, and aspirators, they collected every arthropod they could find—every creature with jointed legs and a hard external skeleton, every insect, spider, centipede, springtail, and woodlouse. It was the first systematic census of its kind. And, as I wrote in January, it unveiled a startling amount of diversity.

“Each home had between 32 and 211 species, belonging to between 24 and 128 families. Most are not pests. Many were found everywhere, and yet are so obscure that only keen naturalists know about them. These bugs are our closest creaturely neighbors, and we barely register their existence.

“I hope this doesn't put fear in people's minds that they’re being overrun or that they live in unclean homes,” says Matthew Bertone from North Carolina State University, who led the study. “People have been living with these animals for centuries. This is just something that is.”

The census contradicted the common beliefs that house-bound arthropods are largely pests, like cockroaches or bed bugs. In fact, Bertone’s team found that such species were rare, and vastly outnumbered by benign species that just happened to be passing through.

Now, Misha Leong from the California Academy of Sciences has busted another myth by analyzing the team’s data. While many people intuitively think that homes in poor neighborhoods would host more bugs, it’s actually the other way round: the wealthiest areas that harbor the widest range of arthropods.  

Of course, the houses in rich neighborhoods tend to be larger, and their lawns are both bigger and richer in plant life. But even after adjusting for these factors, Leong still found a link between neighborhood income and arthropod diversity. In short: more money, more bugs.  

“It’s vegetation at a neighborhood scale that’s really having this big effect,” says Leong. In affluent areas, people might be more likely to plant trees or shrubs, and not just in their own yards but in public spaces beyond. Alternatively, richer people might be more likely to move into greener places. Either way, the bountiful vegetation then fosters a thriving community of arthropods that can then find their way into homes.

Ann Kinzig from Arizona State University suggests that continuity between yards might matter too. “Often in rich neighborhoods, we find one yard looking much like the next,” she says. “In some poorer neighborhoods, we can find absolutely glorious and diverse yards but with less emphasis on conformity. If you are an animal or organism that needs more than one yard’s worth of habitat, this may not be a good place for you.”

It’s not just bugs. Urban ecologists have repeatedly found that monetary wealth affects biological richness. Wealthier neighborhoods also contain more species of birds, lizards, and bats—a pattern known as the “luxury effect.”  As the team write, “Our work suggests that the management of neighborhoods and cities can have effects on biodiversity that can extend from trees and birds all the way to the arthropod life in bedrooms and basements.”

Leong admits that her study has some important limitations. She only had data for 50 homes, all of which were free-standing, and found in middle-and higher-income neighborhoods. “They’re not a representative slice of the local demographics,” she says. But her colleagues are now looking further afield, carrying out the same kinds of surveys in other neighborhoods and other parts of the world. They also want to look at how the diversity of arthropods varies with the presence of pets or carpets, the use of pesticides, or the layouts of rooms.

Studies like these sit in an awkward middle ground between two traditionally disparate disciplines: urban entomology, which has largely dealt with pest insects that live inside people’s homes; and urban ecology, which has focused on species that live in outdoor urban environments. Straddling these fields is indoor ecology—the study of the organisms that live within our four walls.

These, after all, are the creatures we spend most of our time with. And most of them are so small that walls and windows are more inconveniences than barriers. As Leong says, “What’s immediately outside the house affects what’s going on inside.”