We study the rate of convergence in periodic homogenization for convex Hamilton–Jacobi equations with multiscales, where the Hamiltonian
H
=
H
(
x
,
y
,
p
)
:
R
n
×
T
n
×
R
n
→
R
depends on both of the spatial variable and the oscillatory variable. In particular, we show that for the Cauchy problem, the rate of convergence is
O
(
t
ϵ
)
by optimal control formulas, scale separations and curve cutting techniques. We also show the rate
O
(
ϵ
λ
)
of homogenization for the static problem based on the same idea. Additionally, we provide examples that illustrate the rate of convergence for the Cauchy problem is optimal for
0
<
t
<
ϵ
and
t
∼
ϵ
.