Or you can pretend that the magnet consists of two opposite polarity magnetic monopoles and calculate the field on analogy with an electric dipole (two opposite charges separated by distance d). Find the vector sum of fields from the two monopoles and take the limit as r >> d. It's probably easiest to do this along the axis of the dipole, or along a line perpendicular to the midpoint of the dipole.