The gravitational attraction between objects is primarily affected by their masses and the distance between them. The larger the masses and the closer the objects are, the stronger the gravitational force between them.
Continue reading for more information
The gravitational attraction between objects, such as planets or celestial bodies, is influenced primarily by two key factors: their masses and the distance between them. This fundamental force of nature, described by Sir Isaac Newton’s law of universal gravitation, governs the motion and interactions of objects in the universe.
Mass plays a crucial role in determining the magnitude of gravitational attraction. The more massive an object is, the stronger its gravitational pull. As Newton stated in his law of gravitation, “Every particle of matter in the universe attracts every other particle with a force directly proportional to the product of their masses.” Hence, the larger the masses of two objects, the greater the force of attraction between them.
Equally important is the distance between the objects. As the distance between two objects decreases, the gravitational force between them increases. Newton’s law also explains that the force of gravity is inversely proportional to the square of the distance separating the objects. So, the closer the distance, the stronger the gravitational force.
It is fascinating to explore further aspects related to gravitational attraction:

Gravitational Constant: The value denoted by “G” in Newton’s law is known as the universal gravitational constant and quantifies the strength of gravity. Its precise value is approximately 6.674 × 10^11 N(m/kg)^2.

Solar System Dynamics: The gravitational pull of the Sun keeps all the planets in their orbits. The precise balance between their masses and distances ensures stable planetary motions.

Tidal Forces: Gravitational attraction gives rise to tidal forces, causing the rise and fall of ocean tides on Earth. Additionally, these forces create tidal effects within celestial bodies, such as the tidal heating of Jupiter’s moon, Io.

Escape Velocity: To escape the gravitational pull of an object, such as a planet, a certain velocity known as the escape velocity must be achieved. The escape velocity depends on the mass and size of the celestial body.
Here’s a table showcasing the influence of mass and distance on gravitational attraction:
Mass (kg)  Distance (m)  Gravitational Force (N)  

Example 1  1000  1  6.674 × 10^8 
Example 2  1000  10  6.674 × 10^9 
Example 3  10000  1  6.674 × 10^7 
Example 4  10000  10  6.674 × 10^8 
In conclusion, the gravitational attraction between objects is predominantly influenced by their masses and the distance between them. As John Wheeler, an influential physicist, once said, “Matter tells space how to curve, and space tells matter how to move.” Understanding the dynamics of gravity allows us to comprehend the remarkable interplay that shapes the structure and motion of objects in the universe.
See more answers I found
When dealing with the force of gravity between two objects, there are only two things that are important – mass, and distance. The force of gravity depends directly upon the masses of the two objects, and inversely on the square of the distance between them.
Two Factors That Affect How Much Gravity Is on an Object
 Newton’s Law of Gravitation Newton’s law of universal gravitation states that the gravitational force between two objects is proportional to the mass of both objects, divided by the square of the distance between the objects. Or more simply: F=\frac {Gm_1m_2} {d^2} F = d2Gm1m2
 Mass of Objects
 Distance Between Objects
 Gravity on Earth
Answer to your inquiry in video form
This video provides a simple explanation of gravity, including its effects on objects and its relation to the law of gravity. The video also explores the differences in views of gravity from Isaac Newton and Albert Einstein. The findings of gravity research have potential implications that are also discussed.