The pulse area theorem is a well-known versatile analytical tool for capturing the general nonlinear nature of light propagation in a two-level medium. Here we derive the pulse area theorem for the photon/spin echo signal generated in a one-side cavity. The obtained analytical solutions for primary and secondary echo pulse areas allow us to describe the nonlinear patterns of the photon/spin echo signals in an atomic ensemble in a cavity. The developed approach and the obtained results constitute an important step in the study of the general properties of the photon/spin echo in optical and microwave cavities expanding applications of the photon echo in coherent spectroscopy, quantum memory, and processing.