The formula for photosynthesis is carbon dioxide and water and light energy make glucose and oxygen. The formula for cellular respiration is glucose and oxygen make carbon dioxide and water and light energy. The formulas are the same except for switched around.