The invention relates mainly to a hairspring intended to equip the balance wheel of a mechanical timepiece. It is in the form of a spiraled rod (10) cut from an {001} single-crystal silicon plate. Its structure and its dimensions are calculated so as to minimize the thermal drift of the hairspring/balance-wheel assembly by means of the first and second thermal coefficients of its spring constant.