A generalised trapezoidal rule is considered. Error estimates for functions of bounded variation are given. Applications for some particular cases of interest are provided as well.