Effect of molecular elongation on the dipolar free energy