On this page
- 1What do you need to make chili oil?
- 2How do you make chili oil step by step?
- 3Which oil should you use, and how hot should it get?
- 4Can homemade chili oil give you botulism?
- 5How long does chili oil last, and where do you keep it?
- 6Which chili flakes give you the heat you want?
- 7Should you strain the flakes out of chili oil?
- 8Can you use whole dried chilies instead of flakes?
- 9How do you make chipotle, jalapeño or ghost pepper oil?
- 10Why does your chili oil smell burnt or go off?
- 11How do you use chili oil?
- 12Sources
What do you need to make chili oil?
You need 30 g of dried chili flakes, 220 g of neutral oil (about 1 cup), 2 star anise, 1 small cinnamon stick, 1 tablespoon of white sesame seeds and ½ teaspoon of fine salt. That makes about 260 g, one small jar.
This is our recipe for a home pot, not a tested extension recipe. The extension pages we read print rules for oils with garlic and herbs, not a chili oil recipe, so the safety rules below come from those pages.
| Ingredient | Amount | What it does |
|---|---|---|
| Dried chili flakes | 30 g | Color and heat; the chili you pick sets the heat dial |
| Neutral oil, smoke point at least 400°F | 220 g (about 1 cup) | Carries the flavor and takes the heat of the pour |
| Star anise, whole | 2 pods | Warm, sweet spice; comes out before the pour |
| Cinnamon stick, small | 1 | Quiet background spice; comes out before the pour |
| White sesame seeds | 1 tbsp | Toasty crunch that sits with the flakes |
| Fine salt | ½ tsp | Rounds off the heat |
Everything on that list is dry. You add no fresh garlic, shallot, ginger or fresh chile, which the botulism section below warns you about. Dry still does not make your jar pantry food: you keep it in the fridge for up to 4 days or freeze it.
For a half batch, halve every line: 15 g of flakes and 110 g of oil. The share of flakes in the jar stays the same, so the heat table below still applies to you.
Buy flakes labeled for the chili you want, such as crushed red pepper flakes, or dry your own pods first with the pepper drying methods.
How do you make chili oil step by step?
You warm the oil with whole spices, take the spices out, and heat the oil until a pinch of flakes sizzles at once. Then you pour it over the dry flakes in a heatproof bowl, cool it and put it in the fridge.
- 1
Fill the bowl
Put the flakes, sesame seeds and salt in a dry, heatproof metal or ceramic bowl. Keep every drop of water out of it.
- 2
Warm the spices
Put the oil, star anise and cinnamon in a small pot over low heat until the spices smell fragrant and small bubbles rise around them.
- 3
Lift out the spices
Take the star anise and cinnamon out with a dry slotted spoon and throw them away.
- 4
Heat the oil
Turn the heat up a little. Drop in one pinch of flakes: when it sizzles right away, the oil is ready. If the oil smokes, take it off the heat and start again with fresh oil.
- 5
Pour
Pour a third of the oil over the flakes and stir, wait for the sizzle to stop, then pour in the rest and stir again.
- 6
Cool and jar
Let the oil cool in the bowl, spoon it into a clean, dry jar, and put the jar in the refrigerator within 2 to 3 hours.2

The 2 to 3 hours in the last step comes from Oregon State, which says you should not leave perishable foods at room temperature longer than that2.
The pour works because fat carries flavor. Illinois Extension says fat spreads the fat-soluble flavors in seasonings and herbs, which makes them more pronounced1. When you pour hot oil over the flakes, the flavor and the chili color move into the oil in a few seconds.
Which oil should you use, and how hot should it get?
Use a neutral oil with a smoke point of at least 400°F. Illinois Extension says high-heat cooking needs fats with smoke points of at least 400 °F, and it names neutral-tasting peanut, canola, safflower, sunflower and vegetable oils as wise choices1.
| Oil | Smoke point | In this recipe |
|---|---|---|
| Canola1 | 400°F | Pour it hot: it sits right at the 400°F line |
| Vegetable oil1 | 400–450°F | Pour it hot |
| Safflower1 | 510°F | Pour it hot; the most headroom |
| Olive oil (not extra virgin)1 | 465°F | Pour it hot; the flavor is stronger than a neutral oil |
| Extra virgin olive oil1 | 320°F | Warm it gently, no hot pour |
| Unrefined sesame oil1 | 350°F | Stir in a spoonful after the pour |
| Coconut oil1 | 350°F | Skip it for the pour |
| Flax seed oil1 | 225°F | Skip it |
The right column is our reading of the table: we do not pour an oil hot when its smoke point sits below 400°F. The same page says oil that starts smoking is no longer fit to eat and should be thrown out1.
That is why the pinch test in step 4 matters. Drop one pinch of flakes in the pot, and when it sizzles at once, take the pot off the heat. If you see smoke, the oil went too far.
Unrefined oils such as sesame and extra virgin olive have flavors that can enhance or detract from a dish1. Penn State adds that olive and canola oil have fewer polyunsaturated fats than many vegetable oils, so they turn rancid less quickly3.
Can homemade chili oil give you botulism?
Yes, if fresh low-acid food sits in the oil. Penn State says oils flavored with fresh herbs or garlic can be a source of botulism, and that herbs, garlic and other vegetables are low-acid foods that can carry Clostridium botulinum spores3.
Oil around those foods is an oxygen-free place that encourages the spores to grow at room temperature, and they do not grow in the cold3. Oregon State names chili peppers among the vegetables that need this care4, so your jar always ends in the fridge or freezer.
A 2025 paper shows what this looks like in a kitchen.
The family had boiled the jars in water for 30 minutes and kept them at room temperature until they ate them5. Cooking a jar of fresh ingredients in oil does not make it pantry food. The patients ate all of the preserve, so the authors could not test it5.
In this recipe's jar (fridge or freezer, same day count)
The 4-day rule comes from three food-safety pages that agree:
- NCHFP: the National Center for Home Food Preservation says you should make garlic-in-oil fresh and keep it at 40°F or lower for no more than 4 days, and that its research confirmed garlic in oil at room temperature is at risk for botulism6.
- Oregon State, garlic: the same 4 days for peeled garlic cloves in oil, and storage longer than that could allow C. botulinum growth7.
- Oregon State, everything else: you use whole or crushed vegetables or herbs in oil within 4 days or freeze them, and the same goes for oil seasoned with dried garlic or dried herbs4. Shallot and fresh chile are vegetables, so they fall under it.
- Freezer: you may freeze garlic-in-oil for up to several months6.
There is a lab method to acidify garlic and three herbs in citric acid before you oil them. Penn State says to use it only for garlic, basil, oregano and rosemary, and not with other vegetables or herbs, so chiles and shallots stay outside it3.
Illinois Extension is stricter than any of these and says you should use homemade flavored oils immediately and not store them1.
A bottle from a shop is different. Penn State says to check its label for the words acidified or other microbial inhibitors3. The shop jar with crispy bits is chili crisp, which has its own page and follows the same garlic-in-oil source.
How long does chili oil last, and where do you keep it?
Keep it in the refrigerator for up to 4 days, or freeze it. Oregon State says every flavored oil made at home goes in the fridge for up to 4 days or in the freezer, and it names oil seasoned with dried garlic or dried herbs in the same rule4.
No page we read prints a count for oil made only with dried chile flakes. Penn State gives up to three months in the fridge for oil made with dried herbs3, but Oregon State gives dried seasonings 4 days, so you follow the shorter time.
A 260 g jar is a lot for you to finish in 4 days, so freeze most of it the day you make it.
- In the fridge: 40°F or lower, the temperature NCHFP gives for garlic-in-oil6, and use it within 4 days4.
- To freeze: use glass freezer jars or plastic freezer boxes, leave ½-inch of headspace, then label, date and freeze; NCHFP says garlic-in-oil keeps there for up to several months6.
- Small portions: Oregon State freezes crushed vegetables and herbs in oil in ice cube trays, then packs the cubes in airtight containers4. Thaw one cube at a time in the fridge.
- Label: write the day you made it and the day 4 days later on the jar4.
- Which jar: a clean, food-grade bottle or jar; dark glass protects the oil from light3.
- Which spoon: a clean, dry one, because Oregon State says to prepare food with clean hands and utensils2.
Do not judge a chili oil by looking at it. Oregon State says length of refrigeration is not a good index of safety for most foods, but garlic and herbs in oil are the exception, where the day count is the rule2.
That same count answers the "how long does it last" questions for chipotle, jalapeño, ghost pepper and infused olive oils below. For vinegar-based sauces, the shelf life of hot sauce has its own answers.
Which chili flakes give you the heat you want?
Pick the chili by its published heat, because the 30 g sets how hot your jar is. Four dried chilies from our index cover the range, from mild gochugaru up to Thai chili.
Log scale; bars show published ranges.Sources for this line8. Korean Journal of Food Preservation 29(6):907-9179. HortScience 42(2):222-22410. Iowa State University Extension11. University of Florida IFAS Extension
Your jar has 30 g of flakes in about 260 g, so the flakes are about 11.5 percent of the jar by weight (30 g divided by 260 g, our arithmetic). We multiply each published range by that share to estimate the heat of the jar. It is a dilution estimate, not a lab test.
| Flakes | Published heat | Your jar (our estimate) |
|---|---|---|
| Gochugaru8 | 971–22,432 SHU (converted) | About 110–2,600 SHU |
| Chile de árbol10 | 15,000–30,000 SHU | About 1,700–3,500 SHU |
| Cayenne11 | 25,000–50,000 SHU | About 2,900–5,800 SHU |
| Thai chili11 | 50,000–100,000 SHU | About 5,800–11,500 SHU |
The gochugaru figure comes from labeled powder, and its range is wide8. Flakes from a shop do not always match a published pod, so taste a drop first. The difference between gochugaru and red pepper flakes explains why labels vary.
If you have a different chili than the recipe names, the amount changes. To match 30 g of chile de árbol at 15,000–30,000 SHU10, you use these amounts of dried flakes (our arithmetic, from the midpoints of the ranges11):
- Cayenne: 18 g, because it is 1.7 times hotter than árbol.
- Thai chili: 9 g, because it is 3.3 times hotter.
Both figures are for dried pods, and dried and fresh pods are not on the same scale. For more chilies to stand in for árbol, see the árbol swap list.
Should you strain the flakes out of chili oil?
It depends on what you want on your plate. Strained oil is clear and red and drizzles evenly; oil with the flakes left in gives you sediment you can spoon over food.
Heat changes too. Our heat table assumes the flakes stay in the jar. If you strain them out, the jar carries only the heat that moved into the oil, and no source we read measures that, so taste a drop before you use it.
Straining does not change the storage rule for you. Your strained oil still goes in the fridge for up to 4 days or in the freezer, because Oregon State gives oil that only held dried seasonings the same 4 days4.
Can you use whole dried chilies instead of flakes?
Yes. Snip the pods, shake out most of the seeds, and grind them dry in a spice grinder before they go in the bowl. The recipe's 30 g is the weight of the flakes, so weigh them after you grind.
The homemade red pepper flakes page covers drying and grinding. Wear gloves when you handle hot pods; if you forget, the ranked relief methods for chili burn on your hands apply.
How do you make chipotle, jalapeño or ghost pepper oil?
Use the same recipe and swap the flakes for the chili in the name. Only the heat changes. The storage rule is the same for every version, fresh or dried pods: fridge for up to 4 days, or freeze4.
| Oil | Chili to use | Heat | Storage |
|---|---|---|---|
| Chipotle oil, smoky olive oil | Dried chipotle pods, snipped or ground | The chipotle entry has no single SHU range, so taste a drop | Fridge up to 4 days, or freeze |
| Jalapeño oil, green chili oil | Dried jalapeño flakes | Jalapeño: 2,000–8,000 SHU for the fresh pod | Fridge up to 4 days, or freeze; fresh slices follow the same rule |
| Ghost pepper oil, superhot oil | A pinch of dried ghost pepper | One lab average of 1,001,304 SHU against 15,000–30,000 for árbol | Fridge up to 4 days, or freeze |
| Infused olive oil | Any dried chili | Set by the chili | Fridge up to 4 days, or freeze; extra virgin olive oil smokes at 320°F, so warm it gently |
- Chipotle: the chipotle is a smoked, dried red jalapeño, and its entry explains why no single heat range holds for every pod. For a smoky oil without pods, the chipotle swap list names the powders and pastes.
- Jalapeño: the fresh jalapeño range of 2,000–8,000 SHU is for the raw pod11. Drying the jalapeños first gives you flakes for the pour, but no extra fridge days.
- Ghost pepper: a ghost pepper averaged 1,001,304 SHU in one lab paper9, far above the árbol range, so you start with a pinch, wear gloves and keep the jar away from children.
All of these oils are spicy by the chili you pick. An oil made with a pinch of dried ghost pepper can be hotter than one made with all 30 g of árbol, going by the two published figures in the table.
Why does your chili oil smell burnt or go off?
Most problems trace back to the pot, the oil or the jar, so you check the pot first.
| What you see or smell | Likely cause | What to do |
|---|---|---|
| Smoke rises from the pot1 | The oil went past its smoke point | Throw it out and start with fresh oil; smoking oil is not fit to eat |
| Flakes turn dark brown and smell acrid1 | The oil was too hot for the flakes (our cooking judgment) | Start a new batch and use the pinch test in step 4 |
| Oil smells stale or like old nuts3 | The oil turned rancid | Use olive or canola oil, keep the jar dark and cold, and make a smaller batch |
| The jar is too hot to eat1 | The chili was hotter than the heat table row you picked | Stir it into more cool oil, or use less on the plate |
Rancid oil is a quality problem, but a homemade oil kept past its 4 days is a safety problem, and the smell does not tell you which one you have.
How do you use chili oil?
Spoon a little over noodles, dumplings, eggs or rice and taste before you add more, since the heat table shows how strong your jar is. Tilt the spoon for clear oil, or dig down for the flakes if you want the sediment.
Your next step depends on what is in the jar you want:
- Crunchy fried garlic or shallot bits: shops sell that jar as chili crisp, and a homemade one keeps by the same 4-day rule.
- A sauce from fresh peppers: the hot sauce making hub covers the safe routes.
- A cooked chili-in-oil paste with garlic and shallot: the nam prik pao recipe has it.
- A spoonful that came out too hot: the too-spicy fixes cover what to add, and the hot pepper recipes hub lists dishes that use the same dried chilies.






