A residual is the vertical distance between an observed data point and the Least Squares Regression Line (LSRL).
Drag any cyan point on the top graph to magically pull the regression line and watch its red residual update real-time!