Abstract: We show stability versions of two Turán-type theorems for graphs without long cycles. The first is a theorem of Erdős from 1962 which gives an upper bound for the number of edges in a nonhamiltonian graph with prescribed minimum degree. A sharpness example $H_{n,d}$ is provided. The second is a theorem by Erdős and Gallai from 1959 which gives an upper bound on the number of edges in a graph with circumference less than $k$ (for some fixed $k$). The strongest sharpening of the Erdős-Gallai theorem was due to Kopylov who also provided sharpness examples $H_{n,k,t}$ and $H_{n,k,a}$. We show that 1. any 2-connected nonhamiltonian graph with minimum degree at least $d$ and "close" to the maximum number edges is a subgraph of $H_{n,d}$, and 2. any 3-connected graph with circumference less than $k$ and "close" to the maximum number of edges is a subgraph of either $H_{n,k,t}$ or $H_{n,k,2}$. This is joint work with Zoltán Füredi, Alexandr Kostochka, and Jacques Verstraëte.