If a bathroom door opens outwards, it can swing into wall corners and other obstacles when opened.
In bathrooms, doors opening outwards (to the wall side) is a good idea since anybody can push the door to walk out with clean hands. The door handle plays an important role in the path of the swing doors in a bathroom. The width and size of the door in addition to available space is another issue to determine the way door opens. Doors swinging out from restroom will help in odour control.
It makes no difference which side should a bathroom door swing.
There are also other factors are taken into account that play a role in which way a bathroom door should open, including architectural style, location, wall space, decoration of the surrounding room and/or corridor, practicality etc. In some cases, the natural flow of people, or airflow or venting, may be a good guideline.Another possible reason for one choice over the other is if there is a natural prevailing wind direction inside your house.
Make sure that the light switch in a bathroom doesn't get knocked down when someone opens the door. The way the doors open in the rooms in some instances decide the fittings of the hinge pins. The kitchen doors in a home should open out. This design ensures that carrying something from there doesn't get spilled on the floor.
The laws governing building specifications for handicapped bathrooms in a home vary by state. However, the general rule is that a door should open towards a bathroom with grab bars. For a bathroom with grab bars on the right, aligning doors so they open to the left can be considered safer. For example, if a handicapped user is wheeled into a room, he/she would not bump into their own swing door.