Do you have a door that constantly closes on its own when you want it to stay open? This can be a real annoyance. It was probably not hung correctly to begin with. The door is not level or has twisted slightly.
The first thing to check is whether or not you have a loose hinge. Try tightening the screws. This may solve the problem. Consider replacing the screws with longer ones to help keep the problem from coming back.
If the door is still closing on its own, it may be that the hinges are out of alignment. Start by standing in front of the door and see if the hinges are vertically in line. If one or more of the hinges are set deeper than the others, you will have an issue with the door swing. Additionally, if you stand in the doorway and look at the hinges from this angle, they should line up vertically again. If they vary to the left or to the right, this could also be the cause of the problem.
The easiest fix is to try and increase the tension of the hinge pin to create more friction. First remove a hinge pin from the door. We recommend removing the middle one using a hammer and a small Phillips head screwdriver or large nail. On a solid surface such as a driveway or sidewalk, tap the side of the pin with the hammer. You may need to put one end on a small rock so that it will bend just slightly. They bend pretty easily, so don’t hit it too hard. The goal is to create a very slight bend in the pin. Once you have a slight bend, replace the pin in the door. This bend will create enough friction to keep the door from closing on its own. If this does not work at first, try again on another pin.
If all else fails, try to insert a shim. Remove all the screws from the bottom hinge. Let the door hang loose. Cut shims the same size as the hinge from a cereal box. You may need to cut two or three to fill the space created when you remove the screws. Put the screws back in and you should be good to go.