A field goal can be attempted from anywhere on the field, so the distance from the 40 yard line isn't really relevant to anything. If you're asking how many extra yards the ball must travel relative...
It all depends from where the ball is kicked. However, if you are referring to an extra point, it is kicked from the two yard line. So with 10 yards if endzone and 2I of field, a extra point is 12...