When my first child was old enough for a regular bed I decided to make one rather than buy one. I designed the bed so that if I made another exactly the same, either of them would be able to stand on top of the other to make bunk beds. The foot of each leg is dished at the bottom, so allowing it to sit on the ball at the top of the corresponding leg of the lower bed.
Eventually a second bed was needed, so they are now bunk beds.
The legs are 6 inches in diameter and the base below the mattress is solid wood made from tongue and groove planks, making the complete bed very heavy. Of course the bunks now needed a ladder, so I made one of those too.