Three-dimensional weakly nonlinear Rayleigh-Taylor instability is analysed. The stability of a confined inviscid liquid and an overlying gas with density much less than that of the liquid is considered. An asymptotic solution for containers of arbitrary cross-sectional geometry, valid up to order ε3 (where ε is the root-mean-squared initial surface slope) is obtained. The solution is evaluated for the rectangular and circular geometries and for various initial modes (square, hexagonal, axisymmetric, etc.). It is found that the hexagonal and axisymmetric instabilities grow faster than any other shapes in their respective geometries. In addition it is found that, sufficiently below the cutoff wavenumber, instabilities that are equally proportioned in the lateral directions grow faster than those with longer, thinner shape. However, near the cutoff wavenumber this trend reverses with instabilities having zero aspect ratio growing faster than those with aspect ratio near 1.