If two charges are opposite , ( + ) and ( - ) charges for example , they will attract each other . If both charges have the same sign ( like charges ) then the product is positive and the direction of the force on is given by ; the charges repel each other . If the charges have opposite signs then the product is negative and the direction of the force on is given by ; the charges attract each other .