I attached my shelves to the poles in my barn. But if you are putting this in your basement and don't have any studs, you can use 2x4 posts. Just find some way to safely anchor these shelves to the wall.