Foams are increasingly popular in the field of dermatology due to their many advantages such as easy spreading, good skin sensation, and applicability in special skin conditions. One of the critical points of foam formulation is the choice of the appropriate stabilizing ingredients. One of the stability-increasing strategies is retarding the liquid drainage of liquid films from the foam structure. Therefore, our aim was the application of different hydrogel-forming polymers in order to retain the stabilizing liquid film. Dexpanthenol and niacinamide-containing foams were formulated, where xanthan gum and hyaluronic acid were used as foam-stabilizing polymers. Amplitude (LVE range) and frequency sweep (G’, G”, tanδ, and frequency dependency) were applied as structure- and stability-indicating rheological parameters. The rheological data were compared with the results of the cylinder method, microscopical images, and the spreadability measurements.