In this study, an adaptive finite element method (FEM) is developed for structural eigenproblems of cracked Euler-Bernoulli beams via the superconvergent patch recovery displacement technique. This research comprises the numerical algorithm and experimental results for free vibration problems (forward eigenproblems) and damage detection problems (inverse eigenproblems). Design/methodology/approach The weakened properties analogy is used to describe cracks in this model. The adaptive strategy proposed in this paper provides accurate, efficient, and reliable eigensolutions of frequency and mode (i.e. eigenpairs as eigenvalue and eigenfunction) for Euler-Bernoulli beams with multiple cracks. Based on the frequency measurement method for damage detection, utilizing the difference between the actual and computed frequencies of cracked beams, the inverse eigenproblems are solved iteratively for identifying the residuals of locations and sizes of the cracks by the Newton-Raphson iteration technique. In the crack detection, the estimated residuals are added to obtain reliable results, which is an iteration process that will be expedited by more accurate frequency solutions based on the proposed method for free vibration problems. Findings Numerical results are presented for free vibration problems and damage detection problems of representative non-uniform and geometrically stepped Euler-Bernoulli beams with multiple cracks to demonstrate the effectiveness, efficiency, accuracy and reliability of the proposed method. Originality/value The proposed combination of methodologies described in the paper, leads to a very powerful approach for free vibration and damage detection of beams with cracks, introducing the mesh refinement, that can be extended to deal with the damage detection of frame structures.