A bill can pass Congress with a simple majority, but overriding a presidential veto requires a much larger vote: two-thirds in both the House and Senate.
The override target is calculated from votes cast: yes plus no. Absences and “present” votes are not included in that denominator.
435 voting seats when full
100 senators when full
Two-thirds of 435 votes cast
Two-thirds of 100 votes cast