Traditional pesto contains several ingredients with well-documented anti-inflammatory properties, making it one of the more nutritionally interesting condiments you can add to a meal. Basil, olive oil, garlic, and pine nuts each bring compounds that help reduce inflammation in the body. However, the version of pesto you eat matters significantly. Store-bought options often swap out key ingredients or load up on salt, which can undermine those benefits.
What Makes Basil Anti-Inflammatory
Sweet basil, the foundation of classic pesto, is rich in polyphenols that act against inflammation. The most significant of these is rosmarinic acid, which functions as both an antioxidant and an anti-inflammatory compound. Rosmarinic acid works by neutralizing free radicals and interfering with the chemical signals your body uses to trigger inflammatory responses. Fresh basil delivers more of these compounds than dried, and since traditional pesto uses raw basil leaves blended without heat, you get the full benefit.
Olive Oil’s Role
Extra virgin olive oil is arguably the most powerful anti-inflammatory ingredient in pesto. It’s loaded with monounsaturated fats and contains a natural compound that mimics the way ibuprofen works in the body. This is one of the reasons the Mediterranean diet, where olive oil is a dietary staple, is consistently linked to lower rates of chronic inflammatory diseases. In a typical pesto recipe, olive oil makes up the largest share by volume, so it contributes meaningfully to the overall effect.
This is also where store-bought pesto often falls short. Some commercial brands, like Classico’s Traditional Basil Pesto, use soybean oil as their primary fat instead of olive oil. In that product, olive oil gets fifth-place billing on the ingredients list. Soybean oil is high in omega-6 fatty acids, which in excess can promote inflammation rather than reduce it. If you’re buying pesto for its health benefits, check the label and make sure olive oil is the first or second ingredient.
Garlic and Pine Nuts Add Up
Raw garlic contains a compound called alliin that converts into allicin when the clove is crushed or chopped. Allicin then breaks down further into a family of sulfur-containing compounds, including diallyl disulfide and diallyl trisulfide, which have demonstrated anti-inflammatory effects in lab and animal studies. Because pesto uses raw, crushed garlic, these compounds remain intact rather than being degraded by cooking heat. A typical pesto recipe calls for one to three cloves, a modest but consistent dose.
Pine nuts contribute a unique fatty acid called pinolenic acid, which has been reported to exert anti-inflammatory actions and help modulate immune function. Your body also converts pinolenic acid into another fatty acid, eicosatrienoic acid, which has its own anti-inflammatory properties. Pine nuts are calorie-dense and used in relatively small amounts in pesto, so the effect is supplementary rather than dramatic. Still, it adds to the overall profile.
What About the Cheese?
Parmesan is the traditional cheese in pesto, and it does contain saturated fat, roughly 5 grams per ounce. At first glance, that seems like it might work against the anti-inflammatory ingredients. But fermented cheeses like Parmesan tell a more nuanced story. The fermentation process creates byproducts that may counteract some of the downsides of their sodium and saturated fat content. Bacteria in Parmesan break down milk proteins into compounds that resemble a class of blood pressure medications. Fermentation also produces vitamin K, which helps slow the buildup of calcium deposits in arteries.
Harvard Health Publishing notes that cheeses slightly higher in sodium or saturated fat, like Parmesan, may actually contain higher amounts of these beneficial fermentation products. Since pesto uses a relatively small amount of cheese compared to its oil and herb content, the saturated fat contribution per serving is modest and unlikely to cancel out the benefits of the other ingredients.
The Store-Bought Pesto Problem
Commercial pesto can be surprisingly high in salt. A 2017 survey of pesto brands found that some products contained as much as 3.3 grams of salt per 100 grams. At that concentration, a single serving could deliver over 1.5 grams of salt, a significant chunk of the recommended daily maximum of 6 grams. Excess sodium drives up blood pressure and promotes a chronic inflammatory state in blood vessel walls.
Not all brands are equal, though. The same survey found options on the lower end, with some pestos containing less than 1 gram of salt per 100 grams. Brands like Aldi’s Specially Selected Italian Pesto Genovese (0.88g per 100g) and Jamie Oliver Green Pesto (0.9g per 100g) came in well below the saltiest options. If you’re buying off the shelf, comparing sodium on nutrition labels is worth the few extra seconds.
Nearly half of the surveyed pestos also earned a red label for saturated fat, partly because some recipes use cheaper cheese blends or additional fats. The gap between what traditional pesto is supposed to be and what ends up in a jar can be wide.
Homemade Pesto Is the Strongest Option
If you want pesto that genuinely works as an anti-inflammatory food, making it yourself gives you full control. A basic recipe is just fresh basil, extra virgin olive oil, raw garlic, pine nuts, Parmesan, and a pinch of salt. You keep the olive oil as the dominant fat, use fresh garlic with its sulfur compounds intact, and control exactly how much salt goes in.
You can also experiment with ingredient swaps that boost the anti-inflammatory profile further. Walnuts can replace pine nuts and bring a higher concentration of omega-3 fatty acids. Adding a handful of spinach or kale increases the volume of anti-inflammatory greens. Using less cheese or switching to a nutritional yeast base eliminates the saturated fat question entirely, though it changes the flavor.
Pesto is best used uncooked or stirred into food after cooking, since heat can degrade some of the beneficial compounds in basil and garlic. Tossing it with warm pasta, spreading it on bread, or using it as a finishing sauce for roasted vegetables all preserve its nutritional value better than baking or sautéing it.

