This question already has an answer here:
I want to be able to see a frame and 'calculate' (either mathematically or intuitively) the DoF of the picture to be taken.
The most basic variable would be the aperture; my question is do other variables also have effect on DoF? Especially the distance from sensor to object.
Suppose I want to photograph an object with dimensions X and my camera with aperture set on f/1.4 only focuses on half of the object. Can I change something other than the aperture to ensure the whole object is in focus?