Jump to main content

Forensic Science: Building Your Own Tool for Identifying DNA

1,764 reviews


When biologists want to separate different pieces of DNA, RNA, or proteins they use a technique called gel electrophoresis. In this science project you'll build a gel electrophoresis chamber and use it to discover how many components are in different colors of food coloring dye.


Areas of Science
Time Required
Short (2-5 days)
Material Availability
Readily available
Low ($20 - $50)
No issues

Sandra Slutz, PhD, Science Buddies

This science project was adapted from DiSpezio, M. (n.d.) The Gene Hunters: Build an Electrophoresis Chamber. Part of the Scientific American Frontier's Teachers' Guide.

Styrofoam™ is a registered trademark of The Dow Chemical Company.


In this science project you will build your own gel electrophoresis chamber and use it to compare molecules in different colors of food coloring dye.


A forensic scientist sits in her lab with three DNA samples in front of her. One sample is the DNA left behind at the crime scene by the criminal; the other two samples are DNA from possible suspects. How will she determine if either of the suspects' DNA matches the crime scene DNA? The scientist knows she can use an enzyme to cut each DNA sample at a particular sequence of nucleotides; this will leave behind several different pieces of DNA. The exact number of pieces and their sizes will be unique to each individual. This means that there will be an exact match in the pattern of different-sized pieces of DNA between one of the suspects and the DNA left at the crime scene, but not to any other suspects' DNA. The only problem left is, how will she "see" and "measure" the different pieces of DNA in each sample? You might have seen such a scene on the television show CSI. The answer is gel electrophoresis!

Gel electrophoresis is a technique used to separate and view macromolecules. Macromolecules are "large" molecules, such as DNA, RNA, and proteins. During gel electrophoresis, the macromolecules (DNA in the forensics example above) are loaded into a gel. Then a current is applied across the gel. The result is a separation of the macromolecules, based on mass. In order to "see" the macromolecules in the gel, scientists add either dyes, which stain the area of the gel that contains the macromolecules, or chemicals that bind the macromolecules and fluoresce when the gel is exposed to ultraviolet light.

So how does gel electrophoresis work? It is based on the principle that nucleic acids, like DNA and RNA, are negatively charged. This means that if you put nucleic acids in an electric field, they will migrate away from the negative end of the field and toward the positive end. The nucleic acids are placed inside the gel for two main reasons. One, the gel is a way of holding them to know where they are. Two, the migration needs to occur in a manner that allows for the separation of different-sized pieces of DNA or RNA. The gel has many microscopic holes through which the nucleic acids wiggle as they migrate within the electric field. The smaller the nucleic acid sequence, the easier it is for it to wiggle through the holes. So, smaller pieces of DNA and RNA "run" through the gel faster than larger pieces. Returning to our forensic science example, this means that the individual pieces of DNA in each sample are sorted within the gel—the larger pieces appear at the top of the chamber and the smaller pieces appear at the bottom of the chamber. The scientist compares the pattern of the pieces of the crime scene DNA to the pattern of the suspects' DNA and looks to see if there is an exact match.

Protein gel electrophoresis works similarly, except that proteins are not always negatively charged. In order to force the proteins to migrate toward the positive end of the electric field, the proteins are denatured, forced to unfold, in the presence of a chemical that coats the protein in negative charges. The amount of coating is relative to the size of the protein, which means that the total negative charge is greater in larger proteins. Using this technique, proteins, like nucleic acids, can be separated based on mass.

Gel electrophoresis is a common technique in laboratories and has many uses, including the forensics example above. The most common uses are:

For example, a scientist may want to learn more about the proteins that a bacteria releases into the environment. To do this, the scientist collects the liquid media the bacteria grows in and runs a sample of the media in a gel to look at how many proteins are in there. Perhaps the scientist wants to know the identity of one of the proteins. Based on size, the scientist may be able to guess what some of those proteins are; to check if he's right, the scientist can take advantage of the fact that the protein is now "trapped" in the gel. By cutting out the region of the gel containing the protein that's the size he's interested in, and using other techniques to separate the gel from the protein, he can purify the protein and use that pure sample for further experimentation.

The equipment for gel electrophoresis is fairly simple. There is a chamber to hold the actual gel. The chamber has both positive and negative electrodes to which you connect a power source in order to create the electric field. The gel is immersed in a buffer solution, which provides ions to carry the current and keeps the pH fairly constant. The sample is loaded into wells in the gel.

Two yellow electrode plates are placed on opposite sides of a box and connected to a power source
Figure 1. This gel electrophoresis chamber is connected to a power supply by black and red leads. The red lead is attached to the positive electrode; the samples will run toward the positive electrode when the power is turned on. (Photo by Jeffrey M. Vinocur, April 21, 2006.)

In this science project you'll build your own gel electrophoresis chamber. Once it is built, you'll be able to examine different food coloring dyes and explore some of the following questions. For a preview of what the experiment will look like, watch the video below. How many different macromolecules make up each food coloring dye? Is there only one per color? Which color runs through the gel fastest? Do different brands of food dyes contain the same macromolecules? You might be surprised by the results!

Gel Electrophoresis and Forensic Science: Biotechnology Science Fair Project
Watch this video made by the Science Buddies Summer Fellows, for a preview of how to make your own gel electrophoresis chamber and use it to separate food coloring dyes into their macromolecular parts. Electrophoresis may be a cutting-edge biotechnology technique, but the video proves you can still do it in an ordinary kitchen!

Terms and Concepts

Before starting this science project you will need to familiarize yourself with the following terms:



  • This website provides a simple animated walk-through of gel electrophoresis and is an excellent starting point.
    The University of Utah, Genetic Science Learning Center. (2008). Gel Electrophoresis. Retrieved March 4, 2008.
  • Wikipedia gives a slightly more involved and technical explanation about how gel electrophoresis works.
    Wikipedia contributors. (2019, January 6). Gel Electrophoresis. Wikipedia: The Free Encyclopedia. Retrieved January 21, 2019.

Materials and Equipment

Once your gel electrophoresis chamber is built, you will need the following items to run your experiment:

Experimental Procedure

Building the Gel Electrophoresis Chamber

To start this science project, you will first need to build your gel electrophoresis chamber. The plastic box will be the actual gel chamber, the stainless steel wire will be the electrodes, the batteries will be the power source, and you'll use the Styrofoam to make a comb for creating wells in your gel.

  1. Cut two pieces of the stainless steel wire with your wire cutters. The wire should be slightly longer than the width of the plastic box.
  2. Bend the wires so that they hook over the sides of the plastic box and run the width of the box. Place one wire at the top of the box; this will be your negative electrode. Place the other wire at the bottom of your box; this will be your positive electrode.
    Two stainless steel wires are bent so one side can hook onto the wall of a shallow container and the other side lays flat
    Figure 2. Each stainless steel wire electrode is bent in such a manner that it hooks over the side of the box.

  3. Connect your five 9-volt batteries together in series by snapping the positive (+) terminal of one into the negative (-) terminal of another until you've formed a battery pack with all five batteries. There should be one positive and one negative terminal left exposed.

    Five 9-volt batteries are connected by pressing their terminals together in an alternating pattern
    Figure 3. The five 9-volt batteries are clipped together to form one battery pack.

  4. When you're ready to begin the experiment, connect one alligator clip lead to each of the exposed terminals in the battery pack. Complete the circuit by attaching the lead from the negative terminal to the negative electrode, and the lead from the positive terminal to the positive electrode. Now your gel electrophoresis chamber should be fully powered. Remember, don't complete the circuit until your experiment is set up.
  5. Using a pair of scissors, cut out a comb out of the Styrofoam.
    1. The comb will be placed vertically into the plastic box and need to stand upright, so it should be wider at the top so that the comb can rest on the edges of the plastic box.
    2. The teeth should be evenly spaced and there should be at least 2 millimeters of space between the bottom of the teeth and the bottom of the plastic box.

Styrofoam is cut to form a comb with five evenly spaced teeth
Figure 4. This Styrofoam comb will be used to create the wells in the gel for the samples.

Food Coloring Dye Separation Experiment

Once you've assembled your gel electrophoresis chamber, you are ready to start your food coloring dye separation experiment.

  1. The first step in the experiment is to make the buffer solution that you will use for both making the agar gel and running the samples. The buffer should be a 1% solution of baking soda. To make this, combine 2 grams (g) of baking soda with 200 mL of deionized water in one of your bowls and stir well. (If you don't have a kitchen scale, 2 g of baking soda is approximately ½ teaspoon.)
  2. Make a 1% agar gel solution by combining 1 g of agar powder with 100 mL of your buffer solution in a microwave-safe bowl. (If you don't have a kitchen scale, 1 g of agar is approximately ¼ teaspoon.)
    1. Heat the agar solution in a microwave to dissolve the powder. Stop the microwave every 10-15 seconds to stir the solution.
    2. When you see that the solution is starting to bubble, remove it from the microwave. The solution should be translucent. Make sure to watch the agar solution carefully and remove it promptly from the microwave; when it gets hot it will easily bubble over.
  3. Remove the stainless steel wire electrodes from the gel chamber.
  4. Insert the Styrofoam comb into either end of the gel chamber, leaving approximately 0.5 centimeters (cm) between the end of the box and the comb. Gently pour the agar solution into the gel chamber. Add just enough solution to the box so that the comb teeth are submerged approximately 0.5 cm. If the gel is too thick, it will be difficult to observe good separation of the food coloring dyes.

    Diagram of a comb scraping trenches in a layer of gel that sits in the bottom of a plastic box
    Figure 5. To form the wells, there must be a few millimeters of space between the bottom of the comb's teeth and the plastic box.

  5. Wait until the gel solidifies, which may take at least 30 minutes at room temperature. Tip: When the gel is set, it should be firm to the touch and wiggle like solid jello.
  6. Pour the remaining 100 mL of your buffer solution over the solidified gel. Add enough buffer to submerge the gel.
  7. Gently pull the comb out of the gel. Be sure not to remove the comb until you are sure that the agar gel is completely set. The resulting wells will be used as reservoirs for your samples.
  8. Using the butter knife, carefully cut a thin slice of the gel from the top and the bottom to make room for the electrodes.
  9. Re-attach the stainless steel wire electrodes.
  10. Using a plastic syringe or medicine dropper, fill each well in the gel with a different color of food dye. A small drop of food coloring dye is sufficient. You might find it easier to first put a drop of food coloring dye on a piece of wax paper and then use a syringe or medicine dropper to transfer the food coloring dye from the wax paper to the gel.
  11. Using the alligator clip leads, attach the battery pack to the wires resting on the gel chamber. The positive terminal of the battery pack should be connected to the positive electrode; this is the electrode toward which you want the food coloring dye to migrate as it separates. You should see bubbles forming around the electrodes in the buffer as the current passes through them.
    1. If you don't see bubbles, recheck all your electrical connections. Make sure the batteries are properly placed in series, and that the batteries are fresh and fully charged.

    Two alligator clips connect five 9-volt batteries to two electrode plates on opposite sides of a plastic container
    Figure 6. Gel electrophoresis chamber running samples of food coloring dye. Notice the bubbles forming around the electrodes.

  12. Check the progress of your gel every 10-15 minutes. Run the gel until you see good migration and separation of the food coloring dyes.
    1. If you've used the electrophoresis chamber in a previous trial and feel that it is no longer working as efficiently, you might need to troubleshoot the following:
      1. Replace the batteries with fresh, fully charged ones. Running the electrophoresis chamber can drain the batteries.
      2. Make new stainless steel electrodes.
  13. Compare each food coloring dye sample. How many bands do you see for each color? Which one ran the farthest? Using a ruler, measure how far from the wells each band migrated. Make a data table, like the one below, for all your observations.
Food Dye Color Number of Bands Migration Distance of Each Band (cm)


For troubleshooting tips, please read our FAQ: Forensic Science: Building Your Own Tool for Identifying DNA.

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 Nation's Sustainable Development Goals (UNSDGs) are a blueprint to achieve a better and more sustainable future for all.
This project explores topics key to Industry, Innovation and Infrastructure: Build resilient infrastructure, promote sustainable industrialization and foster innovation.


  • Are all food coloring dyes made from the same molecules? Compare different brands of food coloring dyes. Do they migrate the same distance over time? Do they have the same color composition?
  • What food dyes are in your favorite colored candies? Use Bio-Rad's STEM Electrophoresis Kit to jump start your investigation. You will need a teacher's help to order the kit as Bio-Rad sells directly to schools.
  • What variables affect the rate of electrophoresis separation? There are many variables to explore. Several to start with might be the type of electrode, the amount of power, and the agar percentage of the gel.
  • Use your gel electrophoresis chamber to determine if two different types of plants use the same molecule for pigment. To prepare your samples, take the flowers from a plant, grind up the flower, add a little bit of isopropyl alcohol, and continue grinding. Once the solids settle, pour the pigment-tinted alcohol into a separate container. Let most of the alcohol evaporate and then add a drop or two of your buffer solution to reconstitute the pigment.
  • Try combining this experiment with one of the DNA extraction science projects like the Do-It-Yourself DNA or the Extracting Onion DNA Science Buddies project ideas. Can you see the DNA you extracted on your gel? Are there different bands? Note: you will need to use a stain to visualize the DNA. DNA stains are available from online science supply companies, like Science Kit catalog #WW6488701 or Wards Natural Science catalog #38 V 9014.

Frequently Asked Questions (FAQ)

If you are having trouble with this project, please read the FAQ below. You may find the answer to your question.
Q: How can I keep the dyes from running together?
A: Don't worry if you are having difficulty loading the dye into the well – even experienced scientists find this step hard! If after a few tries you are still having trouble, try one or both of the following:
  • Only use every other well. If you created 5 wells, use wells 1, 3 and 5, and leave 2 and 4 empty. If 'there is more distance between the dyes, it will be harder for them to run together.
  • Use a plastic pipette to put the dye in the wells. A pipette is similar to an eyedropper, but smaller, so it is easy to put it directly into the well and only squeeze out a drop or two of dye.
Q: The Styrofoam comb didn't create good wells in the agarose gel. What else can I use?
A: Styrofoam is the easiest material to use when forming the comb because it is easy to cut. However, if you are having trouble forming the wells with a Styrofoam comb, cardboard makes an appropriate substitute.
Q: What would be a testable question or hypothesis for this project?
A: A large part of this experiment is constructing the electrophoresis chamber. Since you can run electrophoresis on multiple samples at once, you might want to try a question and hypothesis based on comparing different samples or dyes. Remember, you should always be able to test your hypothesis and have good evidence to support or refute it. For additional information about constructing a hypothesis, view this Science Buddies resource: http://www.sciencebuddies.org/science-fair-projects/project_hypothesis.shtml
Q: What if there is no bubbling at the electrodes?
A: When you attach the power source, electricity should run through the alligator clips to the electrodes, and you should see bubbling, particularly at the positive electrode (the one farther from the food dyes). If you aren't seeing bubbling, double check your configuration. Make sure everything is connected well and that you have the correct leads connected to the correct electrodes. If you still don't see any bubbling, make sure your batteries are working and are connected together correctly.
Q: Where can I reorder more agarose?
A: The materials list for this Project Idea lists Bio-Rad as a source for purchasing agarose. Science Buddies also maintains a list of "Approved Vendors," many of which carry agarose (http://www.sciencebuddies.org/science-fair-projects/project_supplies.shtml).
Q: I'm having trouble creating the gel. What might be going wrong?
A: There is a great video that the 2011 Science Buddies Summer Fellows put together, which demonstrates the procedure used in this Project Idea. You can view this video on the Project Idea page or at YouTube: http://www.youtube.com/watch?v=QWkfXjGohVk&feature=player_embedded
Q: My electrophoresis chamber was working but now it isn’t. What happened and how can I fix it?
A: If you ran one or more gels successfully but the electrophoresis chamber has stopped working it is likely that the batteries have been drained. This circuit uses up batteries quickly. Try swapping in fresh batteries. Bubbling at the electrodes indicates that current is running from the batteries to the electrode. If new batteries don’t solve the problem, check your connections again. Make sure the batteries are properly snapped together and that the alligator clips are securely attached to both the batteries and the electrodes.
Q: The food coloring is running up the gel instead of down it. What did I do wrong?
A: Oops! You have the positive and negative terminals of the batteries reversed – you need to switch them. The food coloring will migrate towards the positively charged electrode. This means that that the positive (+) terminal of the battery pack should be connected to the bottom electrode – then the samples will travel down the gel. To fix the problem first swap the alligator clips so that the (+) battery terminal is attached to the bottom electrode. Then look at your gel. If the food coloring samples are still in the gel you can just switch it on and they will start migrating the right direction. If the food coloring samples have already run out of the top of the gel then you will need to re-load the wells with fresh food coloring (but you can use the same gel) before powering up the electrophoresis chamber again.
Q: My gel is taking a long time to firm up. Is this normal?
A: How long a gel takes to set depends on a variety of things including how thick the gel is, the starting temperature of the agarose solution, and the temperature of the air surrounding the gel. In general the gels for this project will take 10 – 20 minutes to set. Anything over 30 minutes would indicate a problem. Gels that take a long time to set are likely to have been made with the wrong ratio of agar to buffer (too little agarose). Throw out the unset gel and try again. For this project you are making a 1% agarose gel which means adding ¼ teaspoon (1 gram) of agar to 100 mL of buffer.
Q: My gel set but it looks lumpy and it breaks into clumps when I use it. What happened?
A: If your gel has lumps or clumps it is very likely that the agarose was not completely dissolved in the buffer. Incomplete dissolving would create a gel with some spots with a lot of agarose and others with very little – this uneven environment does not stick together well and the samples will not run through it uniformly. If you have not used the gel yet, you can return the gel to a microwavable container and re-heat it in the microwave. Heat it until the gel is a liquid. Make sure to swirl or stir the liquid thoroughly, to ensure that all the agarose has dissolved, before pouring the solution into your prepared gel chamber. If you have already loaded dye samples into the gel you will need to throw it away and start over with fresh agarose powder and fresh buffer.

Ask an Expert


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

Career Profile
Guilty or not guilty? The fate of the accused in court lies with the evidence gathered at the crime scene. The job of the forensic science technician is to gather evidence and use scientific principles and techniques to make sense of it. It can be a grueling and graphic job, but very rewarding. If you like the idea of using science to help deliver justice, then you should investigate this career. Read more
Career Profile
What do the sequencing of the human genome, the annual production of millions of units of life-saving vaccines, and the creation of new drought-tolerant rice varieties have in common? They were all accomplished through the hard work of biological technicians. Scientists may come up with the overarching plans, but the day-to-day labor behind biotechnology advances is often the work of skilled biological technicians. Read more
Career Profile
Do you enjoy solving mysteries? Getting to the end of a "who did it" mystery novel can be lots of fun! But are there mysteries in real life? You bet there are! A pathologist is a medical detective, and their job is to figure out the root cause of real-life medical puzzles. Pathologists work in a wide range of fields and can help diagnose types of cancer, find out what killed a person, and investigate how disease progresses on a molecular level. If you enjoy employing cool logic to solve… Read more
Career Profile
I have black hair, you have blonde hair. I have blue eyes, you have brown eyes. These, and other characteristics, describe what we look like, how tall we are, and even what our personality is, and they are all controlled by our chromosomes. Chromosomes are packages within each of our cells that hold our genes. Our chromosomes also determine if we might inherit any genetic diseases or if birth defects are present. Extracting, testing, and examining the chromosomes from cells is the job of the… Read more
Career Profile
Growing, aging, digesting—all of these are examples of chemical processes performed by living organisms. Biochemists study how these types of chemical actions happen in cells and tissues, and monitor what effects new substances, like food additives and medicines, have on living organisms. 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. "Forensic Science: Building Your Own Tool for Identifying DNA." Science Buddies, 8 Feb. 2023, https://www.sciencebuddies.org/science-fair-projects/project-ideas/BioChem_p028/biotechnology-techniques/forensic-science-building-your-own-tool-for-identifying-dna. Accessed 21 Sep. 2023.

APA Style

Science Buddies Staff. (2023, February 8). Forensic Science: Building Your Own Tool for Identifying DNA. Retrieved from https://www.sciencebuddies.org/science-fair-projects/project-ideas/BioChem_p028/biotechnology-techniques/forensic-science-building-your-own-tool-for-identifying-dna

Last edit date: 2023-02-08
Free science fair projects.