The transmission-line-matrix method of numerical analysis is developed to account for losses in the walls of a waveguide. Results are given in terms of the wave impedance of a waveguide with losses and also in terms of the power decay due to losses in the walls of a resonant rectangular cavity.