Consider a (nonnegative) measure $$d\sigma $$ with support in the interval [a, b] such that the respective orthogonal polynomials satisfy a three-term recurrence relation with coefficients $$\alpha _{n}=\left\{ \begin{array}{ll} \alpha _{e},&{}n~{\hbox {even,}}\\ \alpha _{o},&{}n~ {\hbox {odd,}} \end{array} \right. \beta _{n}=\beta ~{\hbox {for}}~ n\ge \ell $$ , where $$\alpha _{e}, \alpha _{o}, \beta $$ and $$\ell $$ are specific constants. We show that the corresponding Stieltjes polynomials, above the index $$2\ell -1$$ , have a very simple and useful representation in terms of the orthogonal polynomials. As a result of this, the Gauss–Kronrod quadrature formula for $$d\sigma $$ has all the desirable properties, namely, the interlacing of nodes, their inclusion in the closed interval [a, b] (under an additional assumption on $$d\sigma $$ ), and the positivity of all weights, while the formula enjoys an elevated degree of exactness. Furthermore, the interpolatory quadrature formula based on the zeros of the Stieltjes polynomials has positive weights and also elevated degree of exactness. It turns out that this formula is the anti-Gaussian formula for $$d\sigma $$ , while the resulting averaged Gaussian formula coincides with the Gauss–Kronrod formula for this measure. Moreover, we show that the only positive and even measure $$d\sigma $$ on $$(-a,a)$$ for which the Gauss–Kronrod formula is almost of Chebyshev type, i.e., it has almost all of its weights equal, is the measure $$d\sigma (t)=(a^{2}-t^{2})^{-1/2}dt$$ .