The influence of geometrical factors on the galvanic current distribution for the magnesium alloy AZ91D coupled to steel was investigated using a Boundary Element Method (BEM) model and experimental measurements. The galvanic current distribution calculated from the BEM model was in good agreement with the experimental measurements. The study was extended to practical components by the study of the galvanic corrosion of AZ91D coupled to a steel fastener.