Efficient utilization of commercial electromagnetic (EM) simulators for design and optimization of microwave (MW) and millimeter-wave (MMW) circuits is achieved by classifying design problems into three categories-characterization of circuit elements, optimization of circuit elements, and creation of circuit element libraries such as scalable libraries. Practical aspects of the methods are illustrated by several examples. An equivalent circuit extraction technique suitable for n n n-port coupled structures is provided. The derived equivalent circuit is useful for extrapolating data, optimization, and deriving scalable models.