We study asymptotics of the dimer model on large toric graphs. Let L be a weighted Z 2 -periodic planar graph, and let Z 2 E be a large-index sublattice of Z 2 . For L bipartite we show that the dimer partition function Z E on the quotient L/(Z 2 E) has the asymptotic expansionwhere A is the area of L/(Z 2 E), f 0 is the free energy density in the bulk, and fsc is a finite-size correction term depending only on the conformal shape of the domain together with some parity-type information. Assuming a conjectural condition on the zero locus of the dimer characteristic polynomial, we show that an analogous expansion holds for L non-bipartite. The functional form of the finite-size correction differs between the two classes, but is universal within each class. Our calculations yield new information concerning the distribution of the number of loops winding around the torus in the associated double-dimer models.