What Is Aquafaba, and When Can It Replace Egg Whites?
Aquafaba is the liquid associated with cooked chickpeas, commonly collected from a can. It can whip into a foam and replace egg whites in some baking recipes. That does not make it an automatic replacement for every function of a whole egg.

Start with a consistent source
King Arthur recommends liquid drained from canned chickpeas for more reliable baking than homemade cooking liquid. Drain into a clean bowl and keep the chickpeas for another meal. Check the ingredients, especially when the recipe specifies unsalted liquid.
Choose a recipe designed for it
A tested aquafaba meringue or frosting gives you quantities and a mixing method for that application. Do not assume that a successful foam guarantees success in a custard, cake or other recipe where eggs play a different structural role.
Keep the instructions together
Follow the recipe’s guidance on whipping, added ingredients, cooking and storage. Treat changes in liquid concentration or product type as possible reasons for a different result. Start with a small batch before adapting a recipe for an occasion.
Separate baking function from nutrition
Replacing egg whites for texture does not establish an equivalent nutrient profile. If you are tracking a meal, use information for the ingredients actually used. An egg-free recipe also needs a separate check of the other ingredients when cooking for someone with an allergy.
Sources
Related reading
Should You Rinse Canned Beans? Check the Recipe First
Whole Eggs vs Egg Whites: Protein, Nutrients, and Cooking