The calculator
A 40-year VPW at 3.5% assumed real spends $45,244 in year one from $1,000,000.
How VPW works
Each year the withdrawal is the amortisation of the current balance over the remaining years at the assumed real return, taken at the start of the year as in the Bogleheads VPW worksheet. At a zero assumed return that is simply 1 / years remaining. At 3.5% real over 30 years it is about 5.25%, over 40 years about 4.52%, and the final year spends 100% of what is left. If returns match the assumption, spending stays level. The Bogleheads worksheet is the community reference; this page is that identity with a visible path.
Compare it with Guyton-Klinger (discrete rails) and Merton (same annuity idea, with the return implied by risk aversion).
Assumptions
One assumed return for the payout fraction, one actual return for the path. No fees, no taxes. VPW cannot run out before the last year by construction: the last year spends whatever is left. A crash still cuts the income.