The magnitude of the electrostatic force of attraction or repulsion between two point charges is directly proportional to the product of the magnitudes of charges and inversely proportional to the square of the distance between them.
The force is along the straight line joining them. If the two charges have the same charge, the electrostatic force between them is repulsive; if they have different charges, the force between them is attractive.