What Is Sofrito? The Aromatic Base Behind Latin and Mediterranean Cooking
If you have ever eaten Puerto Rican beans, Cuban ropa vieja, Spanish paella, or Dominican rice and wondered what gives the dish that particular depth — that rounded, savory quality that makes it taste like it was cooking for hours even when it wasn't — you were tasting sofrito. It is one of the most important concepts in cooking, and once you understand how it works, you will start using the principle across many different types of food.
What Sofrito Actually Is
Sofrito (from the Spanish sofreír, meaning "to lightly fry") is a cooked aromatic base — a mixture of vegetables, herbs, and alliums (usually onion and garlic) that are cooked slowly in oil until soft, fragrant, and deeply flavored. The mixture is then used as the foundational layer of a dish, cooked into beans, rice, stews, or sauces before other ingredients are added.
The concept is not uniquely Spanish or Latin American. It is the same foundational idea as the French mirepoix, the Italian soffritto (notice the nearly identical name), and the Cajun "holy trinity" of onion, celery, and bell pepper. Every major culinary tradition has its own version of the same idea: cook aromatics in fat slowly until they transform, then build everything else on top of that flavor foundation.
What makes sofrito distinctive within this family of techniques is the specific combination of ingredients, the degree of cooking, and the role of tomato in many versions.
The Major Variations
Spanish sofrito (sofregit in Catalan cuisine)
The Spanish version is built on onion, garlic, and ripe tomatoes cooked very slowly in olive oil — sometimes for 45 minutes to an hour — until the water is driven off and the mixture reduces to a deep, concentrated, nearly jammy paste. This is the version most often used in paella, fideuà, and many slow-braised meat dishes. The cooking time is not negotiable for the traditional result: the long, slow heat concentrates the tomato, sweeps away raw notes from the onion, and builds a depth of flavor that a quickly made version cannot replicate.
Spanish sofrito often also includes pimentón (smoked or sweet paprika) stirred in during the last few minutes, which gives dishes built on this base their characteristic color and smokiness.
Caribbean sofrito (recaito)
The Puerto Rican and broader Caribbean version looks quite different. Often called recaito when it focuses on cilantro-family herbs, it is typically made from ají dulce peppers (small, mild sweet peppers), culantro (a pungent herb related to cilantro), onion, garlic, and sometimes cilantro and cubanelle peppers. Unlike the Spanish version, it is often blended raw or lightly processed in a food processor rather than cooked down into a paste — and it is then added to a pan and briefly cooked before adding the main dish ingredients.
The flavor profile is markedly different from the Spanish version: brighter, more herbaceous, with the sweetness of ají dulce rather than tomato, and a distinct savory punch from the culantro. This is the base of arroz con gandules, habichuelas guisadas, and many other staples of Caribbean cooking.
Brazilian refogado
The Brazilian equivalent uses onion, garlic, and fresh tomatoes cooked in oil, with the addition of green onions and parsley. It functions identically to other sofrito-style bases and underlies much of Brazilian everyday cooking including feijão (black beans) and arroz brasileiro (Brazilian white rice).
Why It Works: The Flavor Science
Sofrito achieves its depth through several overlapping processes:
Water removal. Raw vegetables are mostly water. Cooking them long enough in fat drives off the water, concentrating the remaining flavor compounds. A cup of raw diced tomato contains a huge proportion of water; a properly cooked sofrito from those tomatoes contains a fraction of the volume but a much higher concentration of flavor.
Maillard reaction and caramelization. As moisture evaporates, the surface temperature of the cooking vegetables rises above 212°F and browning reactions begin. This converts simple sugars and amino acids into hundreds of new flavor molecules — the same chemistry that makes seared meat more complex than boiled meat. A properly cooked sofrito has a slightly golden-to-deep-brown color from these reactions; an undercooked one is pale and tastes raw.
Fat solubility. Many of the flavor compounds in aromatics — including those in garlic, onion, and peppers — are fat-soluble rather than water-soluble. Cooking them in oil extracts these compounds into the fat, which then distributes them throughout the entire finished dish when the fat is incorporated. Cooking aromatics in water would lose these flavors; cooking them in oil captures and carries them.
Making a Basic Sofrito
A functional sofrito for everyday cooking does not require a specific traditional recipe. The principle is what matters: aromatics, cooked slowly in fat, until deeply transformed.
A simple all-purpose version:
- Dice one large onion and three to four garlic cloves finely.
- Optionally add one or two bell peppers, also finely diced.
- Heat two to three tablespoons of olive oil in a wide pan over medium-low heat.
- Add the aromatics and a pinch of salt. The salt draws out moisture and speeds softening.
- Cook, stirring occasionally, for 15–20 minutes until the onions are completely soft, translucent, and beginning to turn golden.
- Add two to three tablespoons of tomato paste (or one to two ripe tomatoes, diced) and continue cooking for another 10 minutes, stirring more frequently, until the tomato has darkened and the mixture smells deeply savory.
This base can go into anything that needs depth: beans, rice, braised chicken, vegetable stews. For a broader set of applications, the pantry sauce playbook covers how to build sauces from a similar aromatic foundation using whatever pantry ingredients are available.
Batch Cooking and Storage
Sofrito is one of the best candidates for batch cooking. A large batch made over the weekend takes the same active attention as a small batch but gives you a week or more of ready-made flavor foundations. It stores in the refrigerator for up to a week and freezes well for three months. Freezing in ice cube trays or tablespoon-sized portions means you can pull out exactly the amount you need — a cube into a pan of beans, two cubes into a braising liquid — without thawing a whole container.
This batch approach is discussed in detail in the guide to how to batch cook on Sunday — sofrito is one of the highest-value elements you can prepare in advance because it elevates so many different dishes during the week.
Cook from what's in your fridge tonight.
NowCook reads your fridge and pantry from a photo and suggests real meals from what's actually there. No scrolling, no planning ahead. 14-day free trial, no credit card needed.
Start free — 14 days$9/month after trial · $72/year ($6/mo) · save $36/yr on annual · see all plans