The Itô integral $\int_0^T W_t\,dW_t$ equals $\frac{1}{2}(W_T^2 - T)$, rather than the $\frac{1}{2} W_T^2$ of ordinary calculus. The $-\frac{T}{2}$ offset is the quadratic variation of Brownian motion accumulated over $[0, T]$.
Derivation via Itô’s lemma and isometry
Applying Itô’s lemma [1, 2] to $U(W_t) = \frac{1}{2}W_t^2$ gives
$$ d\Bigl(\frac{1}{2}W_t^2\Bigr) = W_t\,dW_t + \frac{1}{2}\,dt, $$where the $\frac{1}{2}\,dt$ drift comes from $(dW_t)^2 = dt$. Integrating from $0$ to $T$ and rearranging yields $\int_0^T W_t\,dW_t = \frac{1}{2}(W_T^2 - T)$.
Two moments follow directly: the integral is a martingale with mean $\mathbb{E}\bigl[\frac{1}{2}(W_T^2 - T)\bigr] = 0$, and by the Itô isometry its variance is $\int_0^T \mathbb{E}[W_t^2]\,dt = \int_0^T t\,dt = \frac{T^2}{2}$.


Run this in sItô
Open sItô with this model pre-loaded to inspect the path distribution, summary statistics, and parameter sensitivities—or change any setting and rerun (two coupled states track $dw_t = dW_t$ and $di_t = w_t\,dW_t$, while the transformation $z_t = i_t - \frac{1}{2}(w_t^2 - t)$ vanishes symbolically under Itô’s lemma so $dz_t = 0\,dt + 0\,dW_t$):
- Open Itô integral $\int W\,dW$ ($10^4$ paths, $100$ steps) in sItô ↗. At $T = 1$, the mean of $i_1$ is $0$ (SE $7 \times 10^{-3}$) and its variance is $0.495$, matching the exact variance $\frac{T^2}{2}\bigl(1 - \frac{1}{N}\bigr)$ on $N = 100$ steps.
Discrete residual on an $N$-step grid
Although $z_t$ vanishes in continuous time, the Euler sum $\sum_{n=0}^{N-1} W_n\,\Delta W_n$ satisfies the exact algebraic identity
$$ \sum_{n=0}^{N-1} W_n\,\Delta W_n = \frac{1}{2}\Bigl(W_T^2 - \sum_{n=0}^{N-1} \Delta W_n^2\Bigr), $$so $z_T = \frac{1}{2}\bigl(T - \sum_{n=0}^{N-1} \Delta W_n^2\bigr)$ equals half the discrepancy between $T$ and the realized quadratic variation. Because $\sum_{n=0}^{N-1} \Delta W_n^2$ has standard deviation $T\sqrt{\frac{2}{N}}$, $z_T$ fluctuates with standard deviation $\frac{T}{\sqrt{2N}} = 0.0707$ for $N = 100$, shrinking toward zero as the grid is refined (see Quadratic variation and realized variance and Compiling parametric SDEs into fast Monte Carlo simulations).
Related notes: Stratonovich versus Itô for geometric Brownian motion, The Lamperti transform.