The magnitude of this force between two objects is determined by the masses of each object and the distance between their centres.
Mathematically, the force of gravity is said to be directly proportional to the masses of the objects and inversely proportional to the distance between the objects squared.
Gravitational force is independent of object size and shape.