That is a much larger question than I suspect you think. The answer is different for every magnet and has to do with something call flux. Think of it this way. The actraction to a magnet increases exponentially as the metal gets closer. So your answer is; as the metal object moves away from the magnet, the strength of the force heads towards zero. Hope that helps in some way.