A procedure is offered for the analytical derivation of the seismic vulnerability of building classes, that is, probabilistic relationships between shaking and repair cost as a fraction of replacement cost new for a category of buildings. It simulates structural response, damage, and repair cost for the structural and non-structural components that contribute most to construction cost, and then scales up results to account for the components that were not simulated. It does so for a carefully selected sample of building specimens called index buildings whose designs span the domain of up to three features that are believed to most strongly influence seismic vulnerability within the building class. One uses moment matching to combine results for the index buildings to estimate behaviour and variability of the building class. One can simulate non-structural vulnerability alone by ignoring damage and repair cost for structural components [...]