The electromagnetic forces in a ferrofluid depend on the domain occupied by the fluid. We study here the equilibrium positions of a ferrofluid drop with a boundary which is partially or totally free. The method used is based on the minimization of the energy with respect to the shape of the drop. We show bifurcations of the solutions and hysteresis phenomena when the parameters vary.