Nuclear force (strong nuclear force) operates only at extremely short ranges within the atomic nucleus, about 1-3 femtometers. In contrast, electrostatic, magnetic, and gravitational forces are all long-range forces that can act over infinite distances, with their strength decreasing according to the inverse square law.