Vulgarity?

What exactly is the line between acceptable and non-acceptable vulgarity? Are curse words allowed? How about sexual phrases? Obviously I'm not going to write something that belongs in Penthouse, but what rating do I need to keep it to? PG or PG 13?