OPS adds on-base percentage and slugging percentage to get one number that unites the two. It's meant to combine how well a hitter can reach base, with how well he can hit for average and for power.
The formula for OPS is: (AB x (H + BB + HBP) + TB x (AB + BB + SF + HBP)) / (AB x (AB + BB + SF + HBP)).