You can make biodiesel, a diesel-compatible fuel, by chemically converting vegetable oil or waste cooking oil through a process called transesterification. The reaction combines oil with an alcohol (typically methanol) in the presence of a catalyst to produce fatty acid methyl esters (the actual fuel) and glycerin as a byproduct. It’s a straightforward chemistry project on paper, but doing it safely and producing fuel that won’t damage an engine requires careful attention to ratios, temperature, and quality.
How the Chemical Reaction Works
Transesterification breaks apart the triglyceride molecules in oil through a series of steps. First, triglycerides react with methanol to become diglycerides. Then diglycerides convert to monoglycerides. Finally, monoglycerides break down into glycerol and individual fatty acid methyl esters, which is your biodiesel. Each step releases one molecule of biodiesel, so a single triglyceride ultimately yields three molecules of fuel plus one molecule of glycerin.
The reaction needs a catalyst to proceed at a reasonable speed. Most small-scale producers use a base catalyst, either sodium hydroxide (lye) or potassium hydroxide, because base-catalyzed reactions are faster and work well at moderate temperatures. If your feedstock oil has a high content of free fatty acids, which is common with used cooking oil, you may need a two-step process: an initial acid-catalyzed step to handle the free fatty acids, followed by the standard base-catalyzed transesterification.
Ingredients and Ratios
The three inputs are oil, methanol, and a catalyst. The methanol-to-oil molar ratio is the most important variable. A stoichiometric reaction requires 3:1 (three parts methanol to one part oil), but in practice you need a significant excess of methanol to push the reaction to completion. Research optimizing biodiesel yield from waste frying oil found that a 10:1 methanol-to-oil ratio, combined with 3% catalyst by weight, produced a yield of 99.58% at 60°C over 8 hours of reaction time.
For a rough home-scale recipe using sodium hydroxide as the catalyst, a common starting point is about 200 milliliters of methanol and 3.5 grams of lye per liter of clean, dry vegetable oil. Used cooking oil requires a titration test first. You dissolve a small sample in isopropyl alcohol, then add a lye solution drop by drop until the mixture reaches a neutral pH. This tells you how much extra catalyst you need to neutralize the free fatty acids before the main reaction can proceed.
Equipment You Need
A complete small-scale biodiesel setup has five main components: an oil storage vessel, a reaction tank, a catalyst mixing vessel, a finished fuel storage tank, and a glycerin collection container.
The reaction tank is the heart of the system. Steel or stainless steel is preferred because it handles heat well and resists the chemicals involved. Polyethylene can tolerate the maximum processing temperature of about 140°F (60°C), but you have to be extremely careful with heating elements in plastic. Size the reaction tank at roughly 4.5 times your daily fuel usage. The catalyst mixing vessel should be about 25% the size of your reaction tank, and it needs to be positioned above the reaction tank so the methanol-catalyst mixture (called methoxide) can gravity-feed into the oil.
You also need a way to agitate the mixture during the reaction. A recirculating pump or a mechanical mixer keeps the methanol and oil in contact, which is critical since they don’t naturally want to blend. Heating is typically done with electric immersion elements, bringing the oil to between 120°F and 140°F before adding the methoxide.
Safety Precautions
Methanol is the most dangerous chemical in this process. It’s toxic through skin contact, inhalation, and ingestion. Exposure above 200 ppm requires a supplied-air respirator, and concentrations of 6,000 ppm are immediately life-threatening. Even at lower levels, it can cause headaches, dizziness, and vision damage.
Work outdoors or in a very well-ventilated space with local exhaust ventilation near any open containers. Wear chemical-resistant gloves made of butyl rubber or Viton, which provide over 8 hours of breakthrough protection. Indirect-vent splash goggles are essential, and do not wear contact lenses when handling methanol. A face shield adds extra protection when pouring or mixing. Store methanol in tightly sealed containers away from any heat source, and always check for explosive vapor concentrations before entering an enclosed area where methanol has been used.
Sodium hydroxide is also highly corrosive and will cause serious chemical burns on contact with skin or eyes. The combination of methanol and lye (sodium methoxide) is particularly hazardous. Never add water to lye, always add lye to methanol slowly while stirring. Keep a source of running water nearby in case of skin contact.
The Production Steps
Start by filtering your oil to remove food particles, then heat it to around 130°F. While the oil heats, prepare the methoxide by slowly dissolving your measured catalyst into the methanol in a separate sealed container with mixing. This reaction is exothermic, so the container will get warm. Make sure the lye dissolves completely.
Once the oil reaches temperature, slowly add the methoxide while running your pump or mixer. Maintain agitation for at least one to two hours. Higher mixing speeds improve contact between the reactants. After mixing, let the batch settle for 8 to 12 hours. You’ll see two distinct layers form: lighter biodiesel on top and darker, heavier glycerin on the bottom.
Drain the glycerin from below, then wash the biodiesel. Washing removes residual methanol, catalyst, and soap. The simplest method is to gently mist warm water over the surface of the fuel, let it settle, then drain the water from the bottom. Repeat this three to five times until the wash water runs clear. Finally, heat the washed biodiesel to just above 212°F (100°C) to boil off any remaining water, or let it sit in a warm, dry environment for several days.
What to Do With the Glycerin
Every batch of biodiesel produces a significant amount of crude glycerin as a byproduct, typically about 10% of the volume of oil you started with. Crude glycerin from biodiesel production contains residual methanol, catalyst, and soap, so it cannot simply be poured down a drain or dumped on the ground.
Burning crude glycerin without proper emission controls is a serious health risk because it produces unsaturated aldehydes, which are toxic. Some producers use it as a feedstock in biogas digesters, where adding glycerin to manure-based systems increases methane output. It can also be used in small amounts (up to about 10%) as an animal feed supplement, where studies have shown beneficial growth performance in pigs. Composting with glycerin is another option, as is having it collected by a licensed waste hauler. If none of these options work for you, contact your local waste management authority for guidance.
Quality Testing
Biodiesel intended for use in vehicles should meet the ASTM D6751 standard, which tests for flash point, residual methanol, water content, viscosity, acid number, sulfur levels, cetane number, and total and free glycerin, among other properties. The standard defines multiple grades, with the most common being Grade 2-B S15, a general-purpose blendstock with a maximum sulfur content of 15 parts per million.
Professional lab testing is the only way to fully verify your fuel meets this standard, but you can do basic checks at home. A simple “3/27 conversion test” involves mixing 3 milliliters of your biodiesel with 27 milliliters of methanol. If the biodiesel dissolves completely and the solution stays clear, conversion was likely successful. Cloudiness or separation suggests unreacted glycerides remain in the fuel. You should also check that the fuel is visually clear (no haze or water), has a light golden color, and passes a basic pH test showing it’s close to neutral.
Cold Weather Performance
Pure biodiesel (B100) gels at much higher temperatures than petroleum diesel, which makes it problematic in cold climates. The cloud point, the temperature where wax crystals begin forming, varies by feedstock but is often around 0°C to 5°C for biodiesel made from waste cooking oil.
The simplest fix is blending biodiesel with petroleum diesel at ratios of 5 to 10% biodiesel (B5 to B10), which dramatically improves cold weather behavior. Chemical additives can also help. Polymer-based pour point depressants like poly(methyl acrylate) have been shown to improve the pour point by 9°C and the cold filter plugging point by 8°C. A technique called winterization, where you cool the biodiesel to around negative 5°C for 30 minutes and remove the crystals that form, can lower the cloud point to around negative 8°C. Combining winterization with specialty ester additives at about 10% by weight achieves the best results, pushing usable temperatures well below freezing.
If you live somewhere with mild winters and plan to use B100, you can often get by with just a fuel tank heater. In colder regions, blending with petroleum diesel or using seasonal pour point additives is the practical approach.

