Jump to main content

What Is Home Sweet Home to a Bug?

257 reviews


If you had to choose between having your favorite dessert, going to a movie, or spending the night at a friend's house, which would you choose? This science project shows you how you can "ask" a sowbug (or pillbug) a similar question in order to learn about their preferences. Give it a try to find out what types of microenvironments these tiny crustaceans prefer.


Areas of Science
Time Required
Short (2-5 days)
Material Availability
If you do not have sowbugs or pillbugs available locally, they will need to be specially ordered. See the Materials and Equipment section for details.
Very Low (under $20)
Adult supervision is recommended for using the utility knife.
Andrew Olson, Ph.D., Teisha Rowland, Ph.D., Science Buddies


This project is based on:
  • Lent, G.J. (2004). The Sowbug's Dilemma: Shelter, Shade, or Swamp? California State Science Fair Abstract.
  • Burnette, R., 1999. The Pillbug Project: A Guide to Investigation., NSTA Press, Arlington, VA.


To investigate what types of microenvironments are preferred by sowbugs (or pillbugs).


You can often find sowbugs and pillbugs in damp, dark places, like the soil under rocks or decaying wood. Do you think that they are insects? Think again! Unlike insects, they have seven pairs of legs (insects have three pairs). Sowbugs and pillbugs are both crustaceans (specifically a type called isopods). Other crustaceans include shrimp, lobsters, and crabs. This means that sowbugs and pillbugs are more closely related to lobsters and shrimp than to insects like bees and ants. Crustaceans belong to a larger group of animals, called the arthropods, which includes insects, spiders, and others.

Sowbugs and pillbugs, which are also called woodlice, look fairly similar to each other. Pillbugs are commonly known as "roly-polies" for their defensive behavior of rolling up into an armored ball. Sowbugs do not roll themselves up, and also have a pair of tail-like structures on the last segment of the body. The pictures below (Figures 1 and 2) show examples of each type of "bug."

Photo of a sowbug
Figure 1. Photograph of a sowbug (Ames, 2005).
Figure 2. Photograph of a pillbug (Eigelsreiter, 2006).

Unlike insects, sowbugs and pillbugs breathe with gills, so they need moisture in order to breathe. But these tiny crustaceans have still had very successful lives on land, as there are now about 5,000 known species of pillbugs and sowbugs, living just about anywhere from beaches to deserts. Wherever they go, sowbugs and pillbugs eat decaying material, like plants and even dead animals, and through this process help recycle nutrients in the soil.

In this zoology science project, you will observe how these bugs behave in an experimental habitat that you construct in order to learn about their preferred microenvironments, or small-scale environments. Your habitat will be divided into two compartments that each have a different microenvironment, e.g., dry soil, damp soil, leaf litter, wood pieces, etc. Which microenvironment do you think they will prefer and spend the most time in?

Terms and Concepts



Here are some sources to get you started on researching isopods:

For photographs, check out these webpages. Note: Sowbugs belong to the family Porcellionides while pillbugs belong to the family Armadillidiidae.

This book is a teacher's guide to using pillbugs in the classroom for science investigation:

  • Burnette, R., 1999. The Pillbug Project: A Guide to Investigation., NSTA Press, Arlington, VA.

Materials and Equipment

Two milk cartons, a container of sow bugs, a container of soil, tape, scissors, box cutters and a cardboard tubeImage Credit: Teisha Rowland, Science Buddies / Science Buddies
Figure 3. To do this science project, you will need materials like the ones shown here. One plastic container contains dry soil and the other holds sowbugs Note: You could use shallow, plastic containers instead of milk cartons. If you use round plastic containers, you will need a cardboard tube to connect them.

Disclaimer: Science Buddies participates in affiliate programs with Home Science Tools, Amazon.com, Carolina Biological, and Jameco Electronics. Proceeds from the affiliate programs help support Science Buddies, a 501(c)(3) public charity, and keep our resources free for everyone. Our top priority is student learning. If you have any comments (positive or negative) related to purchases you've made for science projects from recommendations on our site, please let us know. Write to us at scibuddy@sciencebuddies.org.

Experimental Procedure

  1. Build your experimental habitat for testing sowbug (or pillbug) microenvironment preferences by connecting two cardboard milk cartons or two shallow plastic containers and cutting access holes between the two containers so that the bugs can pass from one container to the other.
    1. If you are using two milk cartons, do the following to build your habitat:
      1. Carefully use the utility knife and scissors to cut the tops of the milk cartons completely off about 8 centimeters (cm) (or higher) up from their bottoms. Have an adult help you use the utility knife to start cutting the cartons, and then continue cutting the cartons with the scissors. Discard the top parts of the cartons. You should be left with two square-shaped carton containers (with open tops), as shown in Figure 4, below. Figure 4. Cut the tops off of each milk carton, about 8 cm up from the bottom.
      2. About 2 cm up on each carton bottom, cut out rectangles that run the length of the side of the carton and that are about 3 to 4 cm tall, as shown in Figure 5, below These will be the access holes between the cartons, so make sure they line up well between the two carton bottoms. Figure 5. Make access holes between the cartons about 2 cm up and running the length of the side of each carton.
      3. Turn the carton bottoms so that their access holes line up and then tape the two cartons together, as shown in Figure 5, below. Make sure there are no gaps that any bugs could escape through. Figure 6. Tape the two cartons together so that their access holes line up.
    2. If you are using two shallow plastic containers that have flat sides, like the milk cartons, then connect them as described for the milk cartons in step 1.a., above (but skip step 1.a.i.). If the plastic containers do not have flat sides, but are round instead, then you will need to use a cardboard tube (such as from a toilet paper or paper towel roll) to connect them by doing the following:
      1. Carefully use the utility knife and scissors to cut out a circular hole about 2 cm up on each container, as shown in Figure 7, below. Make the hole have the same diameter as the cardboard tube. Have an adult help you use the utility knife to start cutting the containers, and then continue cutting the containers with the scissors. Figure 7. Cut out a circular hole in the side of each round plastic container that is about 2 cm up from the bottom and the same diameter as the cardboard tube.
      2. Turn the containers so that their holes are facing each other and then connect the containers using the cardboard tube, as shown in Figure 8, below. Adjust the size of the holes if needed so that the tube snugly fits in them. Use the smallest segment of tube possible because you do not want the bugs spending much time in the tube. Figure 8. Join the two round plastic containers using a short segment of cardboard tube.
      3. Tape the two containers to the tube. Make sure there are no gaps anywhere that bugs could escape through.
  2. In your lab notebook, make a data table like Table 1, below. You will record your results in this data table for the first two microenvironments you test.
Time (min)   Damp Soil     Dry Soil  
Table 1. In your lab notebook, make a data table like this one. You will be recording how many sow bugs (or pill bugs) are in each microenvironment (damp soil or dry soil) over time (in minutes [min]).
  1. Create separate microenvironments in each container to test the bugs' preferences. Start by testing a dry soil microenvironment in one container and a damp soil microenvironment in the other container, as shown in Figure 9, below.
    1. Use the same original dry soil for both microenvironments. Remove any large pieces of wood or rocks. Try not to get any soil up on the sides of the containers when you add it because the bugs may then be able to crawl up the sides.
    2. To create a dry soil microenvironment, fill one container with the dry soil until it just reaches the bottom of the access hole (or is about 2 cm deep). Smooth out the surface of the soil so it is flat and there are no crevices that bugs could crawl into.
    3. To create a damp soil microenvironment, fill the other container with the same amount of dry soil. Then use a spray bottle to spray the soil with water, mixing in the water as you spray the soil. Do this until the soil has a cookie dough consistency. As you did with the dry soil, smooth out the surface of the damp soil so it is flat and there are no crevices that bugs could crawl into, but do not press down hard on the soil because you do not want to compact it. Be sure not to get the dry soil damp while you prepare the damp soil.
  2. Release a dozen or more bugs into the containers (put an equal number in each container), and allow them to explore while you observe. Make sure to see whether any of the bugs dig down into the soil because they will be difficult to find later, and watch that none of the bugs climb out of the containers (if there is dirt on the sides of the containers they may be able to do this). Every five minutes for one hour, count the number of bugs in each container, and record the results in the data table in your lab notebook. Count them again at 90 minutes (min) and 120 min after releasing the bugs and record your results.
Figure 9. This shows how to create the dry and damp soil microenvironments in either habitat setup you may have made, the top picture using milk cartons and the bottom picture using round plastic containers.
  1. Repeat steps 2–4 at least two more times to test a total of at least three pairs of microenvironments. Make a new data table for each pair you test. Change only one variable at a time.
    1. For example, you could next try dry soil and dry pieces of wood, or damp soil and damp pieces of wood.
    2. Some other microenvironment materials you could use include leaf litter, small rocks, a different type of soil (such as sand), and compost. You could also test preferences for light vs. darkness and potential food sources.
  2. Make one graph for each of the pairs of microenvironments you tested, making at least three separate graphs total. You can make your graphs by hand or use a program like Create a Graph to make your graphs on a computer and print them out.
    1. On each graph, put the time (in minutes) on the x-axis (the horizontal axis) and the number of bugs on the y-axis (the vertical axis).
    2. Plot the data for each microenvironment and connect each microenvironment's data points with a line. This means each graph should have two different lines (which should be labeled and/or made in different colors).
  3. Analyze your results and try to draw conclusions. Which microenvironment(s) do the bugs seem to prefer the most? Which do they avoid the most? Why do you think this is? Based on your results, what do you think would be the overall best microenvironment for the bugs? Do your results make sense to you?
icon scientific method

Ask an Expert

Do you have specific questions about your science project? Our team of volunteer scientists can help. Our Experts won't do the work for you, but they will make suggestions, offer guidance, and help you troubleshoot.

Global Connections

The United Nations Sustainable Development Goals (UNSDGs) are a blueprint to achieve a better and more sustainable future for all.

This project explores topics key to Life on Land: Sustainably manage forests, combat desertification, halt and reverse land degradation, halt biodiversity loss.


  • An alternative method would be to use time-lapse photography to estimate how much time the bugs spend in each available microenvironment when given a choice. How frequently do you need to take pictures to make this work? Keep in mind that you will want to be able to see when any bugs dig down into the microenvironment.
  • You could try this science project using other small, common animals, such as crickets, earwigs, ants, slugs, snails, mealworms, and waxworms. Crickets, mealworms, and waxworms can usually be purchased at a local pet store. The other animals may be found locally by looking under rocks, garden plants, rotting logs, and leaf litter. What type(s) of microenvironment do these other animals prefer? Note: Be sure to adjust the containers if needed — some of these animals, such as crickets and ants, will need lids for the containers to prevent them from escaping.
  • For a longer-term science project, you could investigate which microenvironment the bugs best reproduce in. Try using some of the best microenvironments from your initial experiment for this. Start with the same number of bugs in each microenvironment. Be sure to provide the bugs with suitable food and watch for baby bugs to appear over time. They will look similar to the adults, but will be extremely small, so they may be difficult to see at first.
  • For a similar science project that uses earthworms, check out Science Buddies project idea Squirmy Wormy: Which Soil Type Do Earthworms Like Best?


If you like this project, you might enjoy exploring these related careers:

Career Profile
Ever wondered what wild animals do all day, where a certain species lives, or how to make sure a species doesn't go extinct? Zoologists and wildlife biologists tackle all these questions. They study the behaviors and habitats of wild animals, while also working to maintain healthy populations, both in the wild and in captivity. Read more

News Feed on This Topic

, ,

Cite This Page

General citation information is provided here. Be sure to check the formatting, including capitalization, for the method you are using and update your citation, as needed.

MLA Style

Science Buddies Staff. "What Is Home Sweet Home to a Bug?" Science Buddies, 20 Nov. 2020, https://www.sciencebuddies.org/science-fair-projects/project-ideas/Zoo_p021/zoology/bug-home. Accessed 19 Apr. 2024.

APA Style

Science Buddies Staff. (2020, November 20). What Is Home Sweet Home to a Bug? Retrieved from https://www.sciencebuddies.org/science-fair-projects/project-ideas/Zoo_p021/zoology/bug-home

Last edit date: 2020-11-20
Free science fair projects.