Anchor depth

How deep does the rebar in the pit need to be embedded into the ground?
Just far enough so the pour will not move the rebar, you want it just to be steadfast......