We consider a family of two-point quadrature formulae and establish a sharp estimates for the remainders under various regularity conditions. Improved forms of certain integral inequalities due to hermite-Hadamard, Iyengar, Milovanović-Pecaric, and others are obtained as special cases. Our results may also be interpreted as analogues to a theorem of Ostrowski on the deviation of a functions from its averages.