The DOF is determined by the subject distance, the lens focal length, and the lens f-number (relative aperture).
for
for
At close-up distances, DOF is approximately determined by the subject-magnification and the lens f-number.
References:
[1] Depth of field – Wikipedia