Electron-beam-induced deposition ͑EBID͒ is a versatile micro-and nanofabrication technique based on electron-induced dissociation of metal-carrying gas molecules adsorbed on a target. EBID has the advantage of direct deposition of three-dimensional structures on almost any target geometry. This technique has occasionally been used in focused electron-beam instruments, such as scanning electron microscopes, scanning transmission electron microscopes ͑STEM͒, or lithography machines. Experiments showed that the EBID spatial resolution, defined as the lateral size of a singular deposited dot or line, always exceeds the diameter of the electron beam. Until recently, no one has been able to fabricate EBID features smaller than 15-20 nm diameter, even if a 2-nm-diam electron-beam writer was used. Because of this, the prediction of EBID resolution is an intriguing problem. In this article, a procedure to theoretically estimate the EBID resolution for a given energetic electron beam, target, and gaseous precursor is described. This procedure offers the most complete approach to the EBID spatial resolution problem. An EBID model was developed based on electron interactions with the solid target and with the gaseous precursor. The spatial resolution of EBID can be influenced by many factors, of which two are quantified: the secondary electrons, suspected by almost all authors working in this field, and the delocalization of inelastic electron scattering, a poorly known effect. The results confirm the major influence played by the secondary electrons on the EBID resolution and show that the role of the delocalization of inelastic electron scattering is negligible. The model predicts that a 0.2-nm electron beam can deposit structures with minimum sizes between 0.2 and 2 nm, instead of the formerly assumed limit of 15-20 nm. The modeling results are compared with recent experimental results in which 1-nm W dots from a W͑CO͒ 6 precursor were written in a 200-kV STEM on a 30-nm SiN membrane.