The main purpose of this study is to find a general analytical relation that can be used to calculate the force between two permanent magnets. The relation will depend on the dimensions of the magnets and distance between them. These will be based on the Coulomb equations for the scalar electrical potential, that will be applied in the magnetic field to calculate the scalar magnetic potential.