Acidity generally increases the cooking time of lentils by strengthening their cell walls, making it harder for them to soften. Adding acidic ingredients like tomatoes or lemon juice too early can significantly prolong the cooking process.
Lentils, like other legumes, soften during cooking as their cell walls break down. This process is influenced by several factors, including temperature, water hardness, and acidity. When acidic ingredients are introduced early in the cooking process, the acid reacts with the pectin in the lentil cell walls, strengthening them. This makes it more difficult for the lentils to absorb water and break down, resulting in a longer cooking time and potentially unevenly cooked lentils. The acid essentially toughens the outer layer, preventing the inside from becoming tender. Therefore, it's best to add acidic ingredients towards the end of the cooking process, once the lentils are already mostly tender. This allows the lentils to cook properly without being hindered by the toughening effect of the acid.
If your recipe calls for acidic ingredients like tomatoes or vinegar, add them only after the lentils are nearly cooked through. This will ensure that the lentils cook evenly and don't remain tough. You can test the lentils for doneness by gently pressing one against the side of the pot; it should yield easily.