Pre-money plus the new money. The value of the company immediately after the round closes.
$4M pre + $1M raised = $5M post. The investor owns $1M ÷ $5M = 20%.
Investor ownership is always calculated on POST-money. This is the single most common source of confusion in a first round.