It is okay to stand and pee directly next to another person when the restroom is crowded and there is no alternative urinal available. You are not expected to have to wait in line or use a stall in these circumstances.

Distance matters because your stream will start to break up if you are too far, and you will have a higher chance of creating splash back. In addition, your urine picks up a lot of velocity the farther you stand from the urinal, resulting in more splash back. If you can impact that porcelain before stream breakup occurs, you will be in good shape. [8] X Research source [9] X Research source