Four is recommended, three is required. Wall anchors within the drywall are not a suitable substitution and the use of anything less than three studs would be a safety hazard. The bed is attached to the wall along both the top and bottom back panels as outlined in the assembly instructions: