One example is bread. I was baking bread the other day, and obviously the cost of the ingredients I put in the loaf are less than the cost of buying a loaf at the supermarket, but that doesn’t include the cost of putting the oven on.
Or dry beans vs canned beans; does the cost of boiling the beans actually bring the cost up to be equivalent to canned beans?
I know that everyone’s energy costs are different so it’s not possible for someone to do the calculations for you, but I’ve never bothered to do them for my own case because bills I get from the energy company just tell me how much I owe them for the month, not “you put the oven on for 30 minutes on the 17th of June and that cost you X”. It sounds like a headache to try calculate how much I pay for energy per meal. But if someone else has done that calculation for themselves I’d be interested to read it and see how it works out. My intuition is that, in general, it’s cheaper to make things yourself (e.g. bread or beans like above), but I couldn’t say that for sure without calculating, which as I said seems like it would be a pain in the ass.
I’ve been making bread regularly for years. A 1-lb loaf costs me about 90 cents USD for ingredients and 15 cents to run the oven. “Nice” Safeway bakery loaves that roughly correspond to what I make cost anywhere from $3-$6, and the whole process takes me 10-15 minutes of actual effort (including cleanup). I don’t count rising and baking times because I’m doing other stuff.
Having also consumed a lot of packaged food (I’m not a crusader against it) I would say cooking meals from store-bought ingredients costs around half as much. Home-growing vegetables adds a huge amount more work. I did a garden for 2 years, many years ago - it was more of a fun project. On the scale I did it I never felt the hours of labor paid off dollar-wise. And what with mulch and other things gardening is something you can pretty much spend as much money on as you want lol.
Fun fact: if you go to the deli counter and get them to slice meat for you it’s about half the price of the store-brand deli packs on the shelves, which are the exact same meats, sliced and packaged by the same people. The only difference is you stand there waiting for a minute while they do it instead just grabbing it off the shelf. The high price of even marginal convenience.