Calculate the force of attraction between two objects with F = Gm₁m₂/r² from their masses and distance, or the electrostatic force between two charges.
- All Physics Calculators
- All Force Calculators
- Tractive Force Calculator
- Gravitational Force Calculator
Calculator Functions
| Function | What it does | What it requires |
|---|---|---|
| Gravity: force | Finds the gravitational attraction between two masses | Requires both masses and the centre-to-centre distance |
| Gravity: first mass | Finds the first mass from the attraction it produces | Requires the second mass, the distance and the force magnitude |
| Gravity: second mass | Finds the second mass from the attraction it produces | Requires the first mass, the distance and the force magnitude |
| Gravity: distance | Finds how far apart two masses are for a known attraction | Requires both masses and the force magnitude |
| Gravity and weight | Finds the gravitational acceleration at a distance from a body, and the weight of an object there | Requires the central body mass and the distance from its centre, with an object mass as an option |
| Electric: force | Finds the force between two point charges and whether they attract or repel | Requires both signed charges, the distance and the relative permittivity |
| Electric: charge 1 magnitude | Finds the size of charge 1 from the force | Requires charge 2, the distance, the force magnitude and the relative permittivity |
| Electric: charge 2 magnitude | Finds the size of charge 2 from the force | Requires charge 1, the distance, the force magnitude and the relative permittivity |
| Electric: distance | Finds the separation of two charges for a known force | Requires both charges, the force magnitude and the relative permittivity |
| Escape, orbit and energy | Finds the escape speed and circular orbit speed at a distance from a body | Requires the central body mass and the distance from its centre, with an object mass as an option |
Masses are entered in kg or lb, distances in m, cm, mm, km, ft or in, forces in N or lbf and charges in C, mC, μC, nC or pC. Distances are always measured between centres. Gravity: force offers ready-made examples, and the two body functions can fill in the mass and mean radius of Earth, the Moon, Mars, Jupiter or the Sun.
Attraction Force Formulas
| F | Force of attraction (N) |
| G | Gravitational constant, 6.67430 × 10−11 N·m²/kg² [2] |
| m1 | First mass (kg) |
| m2 | Second mass (kg) |
| r | Distance between the centres of the two masses (m) |
Gravity: force
Every object attracts every other with a force proportional to both masses and inversely proportional to the square of the distance between them, directed along the line joining them [1]. Two 1 kg masses 1 m apart attract with 6.6743 × 10−11 N. A 70 kg person at Earth’s mean radius is pulled with 687.42 N.
Gravity: first mass
The known mass must be above zero, since a zero mass produces no force.
Gravity: second mass
This is the same rearrangement with the masses swapped.
Gravity: distance
The force must be above zero, because two masses never attract with exactly zero force at a finite distance.
Gravity and weight
M is the mass of the central body and r is the distance from its centre. Adding an object mass m gives its weight, m × g. A spherical body pulls on an outside object as though all of its mass sat at its centre [3], so a surface value comes from entering the body’s radius as r. The body presets use these masses and mean radii [4]:
| Body | Mass (kg) | Mean radius (km) | g at that radius (m/s²) |
|---|---|---|---|
| Earth | 5.9722 × 1024 | 6,371 | 9.82 |
| Moon | 7.346 × 1022 | 1,737.4 | 1.62 |
| Mars | 6.4169 × 1023 | 3,389.5 | 3.73 |
| Jupiter | 1.89813 × 1027 | 69,911 | 25.92 |
| Sun | 1.9884 × 1030 | 695,700 | 274.20 |
Electric: force
k is the Coulomb constant, 1 ÷ (4π × ε0), about 8.98755 × 109 N·m²/C² [6], and εr is the relative permittivity of the material between the charges, 1 for a vacuum [7]. Charges with opposite signs attract and charges with the same sign repel. Charges of +1 μC and −2 μC that are 0.1 m apart in a vacuum attract with 1.7975 N.
Electric: charge 1 magnitude
(k × |q2|)
The force magnitude gives the size of the charge only. It cannot show whether the charge is positive or negative.
Electric: charge 2 magnitude
(k × |q1|)
This is the same rearrangement with the charges swapped.
Electric: distance
(εr × F))
Both charges and the force must be nonzero.
Escape, orbit and energy
The circular orbit speed at the same distance is √(G × M ÷ r), which is the escape speed divided by √2. With an object mass m, the potential energy is U = −G × M × m ÷ r, counted as zero infinitely far away [3]. The escape speed is the speed at which kinetic energy just cancels that potential energy. From Earth’s mean radius it is 11.186 km/s and the circular speed is 7.910 km/s.
Limits of This Estimate
- The gravity formulas treat each body as a point or a sphere and measure between centres. They do not cover irregular shapes, points inside a body, or gravity strong enough to need relativity. An escape speed at or above the speed of light is rejected.
- The body functions leave out rotation and atmosphere, and they use the mean radius, so g can differ a little from a value measured at a particular place on the surface.
- Coulomb’s law in this form is for charges at rest [5]. Dividing by εr is correct only when one uniform fluid fills the space around the charges, and εr is only roughly constant for real materials [7].
- G is known to about five significant figures [2], so gravitational results are not exact beyond that.
Sources
- California Institute of Technology, The Feynman Lectures on Physics, Volume I, Chapter 7: The Theory of Gravitation: law of universal gravitation
- NIST, CODATA Value: Newtonian constant of gravitation: value and uncertainty of G
- California Institute of Technology, The Feynman Lectures on Physics, Volume I, Chapter 13: Work and Potential Energy: gravitational potential energy and a sphere acting as a point mass
- NASA Space Science Data Coordinated Archive, Planetary Fact Sheets: mass and mean radius of Earth, the Moon, Mars, Jupiter and the Sun
- California Institute of Technology, The Feynman Lectures on Physics, Volume II, Chapter 4: Electrostatics: Coulomb’s law for charges at rest
- NIST, CODATA Value: vacuum electric permittivity: value of the vacuum permittivity behind the Coulomb constant
- California Institute of Technology, The Feynman Lectures on Physics, Volume II, Chapter 10: Dielectrics: force between charges in a dielectric and when that form holds
