The pyranose ring is formed by the reaction of the hydroxyl group on carbon 5 (C-5) of a sugar with the aldehyde at carbon 1. This forms an intramolecular hemiacetal. If reaction is between the C-4 hydroxyl and the aldehyde, a furanose is formed instead. The pyranose form is thermodynamically more stable than the furanose form, which can be seen by the distribution of these two cyclic forms in solution.