Enter the room size. Doors and windows come off the wall area, and you can add the ceiling.
Wall area = room perimeter × wall height, minus about 21 sq ft per door and 15 sq ft per window. Gallons = area × coats ÷ coverage. Most wall paint covers 350–400 sq ft per gallon; use less for rough or porous surfaces or big color changes.
The Interior Painting Estimator does this and much more in Google Sheets and Excel: saved, organized and protected so nothing breaks. Buy once, $18.
See the Interior Painting Estimator