This work aims at computation and optimization of transmission coefficients of waveguide filters formed by one- or multi-sectional diaphragms in a waveguide of rectangular cross-section. An approach for designing band-stop and band-pass filters is proposed employing analysis of closed-form solutions and numerical multi-parameter optimization.