Depth of field and hyperfocal distance from focal length, aperture, focus distance and sensor, with a range chart
Focus at the hyperfocal distance and everything from half of it to infinity is acceptably sharp — the classic landscape trick.
Standard formulas: H = f² / (N·c) + f, near = s(H−f) / (H+s−2f), far = s(H−f) / (H−s). The circle of confusion is the sensor diagonal over 1500, which matches the usual DOF tables; pixel peeping at 100% will look softer.