We present results of quenched lattice calculations of the matrix elements relevant for B d −B d and Bs−Bs mixing in the standard model. Results for the corresponding SU (3)-breaking ratios, which can be used to constrain or determine |V td |, are also given. The calculations are performed at two values of the lattice spacing, corresponding to β = 6.0 and β = 6.2, with quarks described by a mean-field-improved Sheikholeslami-Wohlert action. As a by-product, we obtain the leptonic decay constants of B and D mesons. We also present matrix elements relevant for D 0 −D 0 mixing. Our results are summarized in the Introduction.12.38. Gc, 12.15.Hh, 14.40.Nd