If u is a smooth solution of the Navier--Stokes equations on R3 with first blowup time T, we prove lower bounds for u in the Sobolev spaces H˙3/2, H˙5/2, and the Besov space B˙2,15/2, with optimal rates of blowup: we prove the strong lower bounds ∥u(t)∥H˙3/2≥c(T−t)−1/2 and ∥u(t)∥B˙2,15/2≥c(T−t)−1, but in H˙5/2 we only obtain the weaker result limsupt→T−(T−t)∥u(t)∥H˙5/2≥c. The proofs involve new inequalities for the nonlinear term in Sobolev and Besov spaces, both of which are obtained using a dyadic decomposition of u.