How to Extract Caffeine from Coffee
Extracting caffeine from coffee at home is a fun chemistry project that yields a small amount of crude caffeine powder. It won't be pure (you'll get some coffee solids and other compounds), but it's enough to see the white crystals and understand the science. This guide uses a simple solvent extraction with dichloromethane (or nail polish remover with the same active ingredient) and a few kitchen items. Safety first: work in a well-ventilated area, avoid flames, and wear gloves and goggles. This is for educational purposes only – the extracted caffeine is not meant for consumption.
What You'll Need
- 30–50 grams of ground coffee (any roast, but medium/dark works well)
- Dichloromethane (DCM) – available online or at hardware stores as paint stripper; check label for 100% DCM. Alternatively, use acetone-free nail polish remover that contains ethyl acetate (less effective but safer).
- Large glass jar with a tight lid (e.g., Mason jar)
- Glass baking dish or shallow pan
- Coffee filter or fine mesh strainer
- Separatory funnel (optional, but makes separation easier; can use a turkey baster as a substitute)
- Glass beaker or heat-safe bowl
- Hot plate or stove (for evaporation – do NOT use open flame)
- Rubber gloves and safety goggles
- Distilled water (for washing, optional)
Step-by-Step
- Steep the coffee grounds in hot water. Add 30–50 grams of ground coffee to a large glass jar and pour in about 200 mL of boiling water. Stir well, then let it steep for 10–15 minutes. This extracts the caffeine and other water-soluble compounds into the water.
- Filter the coffee. Pour the coffee mixture through a coffee filter or fine mesh strainer into a clean glass container. You should get a dark, strong coffee liquid. Discard the grounds.
- Cool the coffee. Let the coffee cool to room temperature. You can speed this up by placing the container in an ice bath.
- Add dichloromethane. Pour the cooled coffee into a separatory funnel (or a large jar). Add an equal volume of DCM (about 200 mL). DCM is denser than water, so it will sink to the bottom. Put the lid on and gently swirl the mixture for 2–3 minutes. Do not shake vigorously – it will form an emulsion that is hard to separate. Periodically open the lid to release pressure.
- Let the layers separate. Allow the mixture to sit undisturbed for 5–10 minutes. You'll see two layers: the top layer is the coffee water (brown), and the bottom layer is the DCM (clear, containing caffeine).
- Separate the DCM layer. Carefully drain the bottom DCM layer into a separate glass beaker or bowl. If using a jar, use a turkey baster to siphon off the bottom layer. Be careful not to mix the layers. You can repeat the extraction with fresh DCM on the remaining coffee water to get more caffeine, but one pass is enough for a small yield.
- Evaporate the DCM. Pour the DCM solution into a shallow glass baking dish. Place the dish on a hot plate set to low heat (or a warm surface) in a well-ventilated area. Let the DCM evaporate completely. This may take 30–60 minutes. Do not use an open flame – DCM is flammable. The residue left behind will be a yellowish-white powder – crude caffeine.
- Scrape and dry. Use a razor blade or spatula to scrape the powder from the dish. Spread it on a paper towel and let it air dry for a few hours to remove any residual solvent.
Common Mistakes
- Shaking too hard: This creates an emulsion that takes hours to separate. Always swirl gently.
- Not using enough coffee: If you use too little, you'll get a negligible amount of caffeine.
- Skipping the cooling step: Hot coffee will evaporate some DCM and make separation messier.
- Using the wrong solvent: Acetone or ethanol will not work because they mix with water. Stick with DCM or ethyl acetate.
- Evaporating near a flame: DCM fumes are toxic and flammable. Always use an electric hot plate in a ventilated area.
Tips
- Use a separatory funnel if you have one – it makes the layer separation much cleaner.
- For a purer product, wash the crude caffeine with a small amount of cold acetone (which dissolves impurities but not caffeine) and filter.
- Work in a well-ventilated area or outdoors to avoid inhaling DCM fumes.
- If you don't have DCM, you can use ethyl acetate (found in some nail polish removers) – it's less toxic but also less effective.
- Keep the extracted caffeine in a labeled, sealed container. It's not food-grade, so don't ingest it.
Troubleshooting
- Emulsion formed: Add a pinch of salt to the mixture – it helps break the emulsion. Or, let it sit overnight.
- No white powder after evaporation: You likely didn't have enough caffeine in the coffee, or the DCM didn't extract properly. Try using more coffee or repeating the extraction step.
- Powder is brown: That's normal – it contains coffee oils and other impurities. To purify, dissolve the powder in a small amount of hot water, filter, and let it cool – caffeine will crystallize out.
- DCM won't separate from coffee: If you see a cloudy middle layer, that's emulsion. Let it sit longer, or gently stir with a glass rod to help the layers coalesce.
- Smell of solvent in the final product: The DCM didn't fully evaporate. Spread the powder thin and let it dry for several hours in a ventilated area.
Frequently Asked Questions
Is the extracted caffeine safe to eat?
No. This method yields crude caffeine with residual solvents and other coffee compounds. It is not food-grade and could be harmful if ingested. This is purely a chemistry demonstration.
How much caffeine will I get from 50g of coffee?
Typically, 50g of coffee contains about 1–2 grams of caffeine, but you'll recover only a fraction – maybe 0.5–1 gram – due to losses during extraction.
Can I use decaf coffee?
Yes, but you'll get almost no caffeine. Use regular coffee for a visible yield.
What if I can't find dichloromethane?
You can use ethyl acetate (found in some nail polish removers) or even cold water extraction with a fat like butter (but that's a different method). DCM is the most effective for home use.
Why do I need to cool the coffee before adding DCM?
Hot coffee will cause DCM to evaporate quickly, reducing extraction efficiency and creating more fumes. Cooling also helps the layers separate cleanly.
Can I speed up evaporation?
Use a fan to blow air over the dish – that helps evaporate DCM faster. Do not use a microwave or open flame.