You WON'T need 5 gallons to paint the trim and doors. 2 gallons should be more than enough to do 2 coats on all the trim and doors. You might go through 5 gallons for the walls. I guess it all depends on if you're talking about new construction (bare wood, drywall) or previously painted surfaces.