This feature is now here, you can toggle the sidebar after you set the option "Hide left navigation" in Settings -> Preferences
.
Original answer:
TL;DR: There is no such option yet, but the SE dev team has planned its implementation.
This post on Meta.SE says (among other things, I quoted the parts relevant to the question here):
Hide/collapse left nav status-planned
One of the biggest concerns was the amount of space that is taken up by the left nav. We're currently working on making the left nav collapsible. If you collapse it, then the left nav stays collapsed. When you click on the hamburger to access it the left nav comes up as an overlay and will dismiss when you make a choice or click away. Plan is that this will be remembered per site. For example you can keep it open on SO.com, but keep it collapsed on other sites.
This feature has not been implemented yet, but as SE seems to deploy the left sidebar to all users in Early June, I assume this will get implemented soon:
Early June - Deploy to Stack Overflow, MSO, and MSE for all users.