Two waves are in phase if they have the same frequency and phase, meaning their peaks and valleys line up everywhere. Out of phase waves have the same frequency but different phases, so their peaks and valleys do not align. The phase of a single wave is defined as the distance between its first zero-crossing point and a defined origin, and depends on both position and time.