A gate is far more practical than jumping over the fence every time.
4 Wood
Shows up in the build menu once you know the Workbench and have picked up Wood.