Saw three 2-by-8-by-96-inch lumber boards into two side rails measuring 75 inches long, and two end rails that are 41 inches long. Adjust this size depending on the size of your mattress.
Trim down two 4-by-4-by-96-inch lumber planks into one leg that measures the desired height of the bed. While the head rail and side rail are fixed directly into the wall studs, the opposite corner is unsupported, with this leg providing the support.
Cut two 2-by-2-by-96-inch lumber planks into slat support rails to extend the length of the bed, less 3 inches for the 1 1/2-inch thickness of the end rails.
Divide two 2-by-4-inch lumber boards into at least four slats that measure the exact length of the end rails.
Cut a 1 1/2-inch-thick selection out of the top of the leg, cutting 2 inches down. Repeat this on a perpendicular side to create a 2-by-2-by-2-inch cube section atop the leg. This notch fits inside the bed frame to lock the bed in place.
Construct the bed frame by placing the end rails between the side rails, flush with their edges, forming an even rectangle. Connect each joint with four countersunk screws that are 3 inches long.
Attach the slat support rails into the bed frame, 2 inches from the bottom, ensuring that they are level. Screw them into the side rails using 3-inch countersunk screws. Align the slats atop and secure them.
Locate the relevant wall studs using a hand-held stud finder. Mark them with a pencil at the height where you want the bed to stand.
Align the 2-by-2-by-2-inch notch with the inside corner of the bed. Drill a 5/8-inch hole through the rail and notch. Place a 5/8-inch-thick-by-4-inch-long bolt through the hole and secure it with a nut on the inside.
Move the bed into position flush with the corner. Fix it to the wall studs using five countersunk screws that are 4 inches long placed into every stud.