  We present Feynman type diagrams for calculating the n-point function of the
primordial curvature perturbation in terms of scalar field perturbations during
inflation. The diagrams can be used to evaluate the corresponding terms in the
n-point function at tree level or any required loop level. Rules are presented
for drawing the diagrams and writing down the corresponding terms in real space
and Fourier space. We show that vertices can be renormalised to automatically
account for diagrams with dressed vertices. We apply these rules to calculate
the primordial power spectrum up to two loops, the bispectrum including loop
corrections, and the trispectrum.
