To calculate the distance between points (-1,7) and (-2,3), the formula AB = sqrt[(xB-xA)^2 + (yB-yA)^2] is used where A(-1,7) and B(-2,3). Plugging these values into the formula gives AB = sqrt[1 + 16] = sqrt17, so the distance between the two points is sqrt17 units.