To get caramelized, creamy baked sweet potatoes, cut them in half lengthwise and place them cut-side down directly on a baking sheet instead of wrapping them in foil.
Caramelization requires two things: heat of at least 320 degrees Fahrenheit and low moisture. Foil traps steam, preventing the sugar from caramelizing. Placing cut potatoes flat-side down on a hot surface gives the flesh direct contact with heat while the rest of the vegetable softens. The result has significantly better flavor with the same creamy texture.
Bake at 400 degrees Fahrenheit for 30 to 40 minutes, about half the time of whole foil-wrapped potatoes. Line your pan with parchment paper rather than foil. Parchment provides some insulation and prevents sugars from sticking as they roast. Lightly oil the cut surface to prevent burning without sacrificing flavor.
Choose longer, uniform sweet potatoes over wide ones. Wide potatoes risk burning on the bottom before the flesh softens. Uniform shape means a single lengthwise cut prepares them evenly. This method works with varieties like Garnet and Murasaki sweet potatoes. Air fryers won't caramelize as effectively because they lack a solid, flat bottom surface.