Compare common repeat-policy models
The replacement model removes the old course quality points and substitutes the new grade while keeping the GPA-credit denominator unchanged. The both-attempts model keeps the existing GPA and adds the retake as another attempt.
Institutional rules vary
Schools differ on grade forgiveness, credit counting, repeat limits, transcript display, caps, and which attempt counts. Verify the official registrar policy before relying on the result.