I’ve made a lot of sawhorses over the years because they are so useful. It’s like having a portable workbench ready whenever you need it. The biggest problem with all the different types I’ve made is that they take up too much space to store.
One solution is to make them stackable, or you can make them foldable. I decided to design this pair of sawhorses so they would require just 4″ space from a wall, the width of a 2×4. The plywood shelf makes for a handy place to set a circular saw or clamps while using the horse, but mostly it acts as a cross brace to provide stability.
I used strap hinges to attach the two swinging legs. They seem to have more side-to-side play than I would like, so you might want to experiment with a different type of hinge.
I attached the swinging side of the shelf to the swinging legs: it might work better to use the fixed legs for the swinging shelf.
Additionally, if the hinged legs splay, you can attach a brace between the two legs, near the top of the sawhorse.
Update: I just added a 3/4″ x 1.5″ brace. This works perfectly to keep the hinged legs together.