Granny Smith apples are the best for baking because they hold their shape and have a nice tart flavor. Other varieties of apples such as Honeycrisp, Cortland, or McIntosh also work well when baking cakes.