We propose a mixed analytical-ab-initio method for the accurate calculation of the conductance in monovalent atomic wires. The method relies on the most general formula for ballistic transport through a monovalent wire, whose parameters can be determined from first-principles calculations. Our central result is the demonstration of the highly non-universal behavior of the conductance, which depends on the fine details of the contacts to the leads. We are therefore able to reconcile a large number of the apparently contradictory results that have recently appeared in the literature. 73.63.Rt,73.40.Cg In the last two decades transport properties of atomic contacts have been the subject of intensive research (for overviews see Ruitenbeek [1] and Agraït, Yeyati and Ruitenbeek [2]). First experimental evidences of the formation of golden atomic chains have been reported by Yanson et al. and Ohnishi et al. [3]. Experiments on chains of Au, Pt and Ir atoms [4] exhibit electrical conductance oscillations as a function of the wire length and similar oscillations as a function of bias voltage and electrode separation [5,6]. Rodrigues et al. [7] investigated the energetically preferred orientation of the crystal planes of the wire by the application of highresolution transmission electron microscopy. Their results show a strong correlation between the atomic arrangement and the conductance.The above experiments were stimulated by early theoretical predictions of conductance quantization [8] and conductance oscillations [9,10]. The latter issue generated a sequence of theoretical papers using a variety of techniques [11,12,13,14,15,16,17,18,19,20,21,22,23]. Density-functional theory predicted that the conductance of Na atom chains is close to the conductance quantum 2e 2 /h for odd numbers of atoms, and smaller than this for even numbers of atoms [10,15,16,20]. In the literature this is called the even-odd effect. A similar effect was found for other monovalent alkali-metal atoms such as Cs, but an opposite behavior, with a conductance bigger for even numbers of atoms than for odd numbers of atoms, was predicted for noble-metals (Cu, Ag and Au) [23]. The even-odd oscillation of the conductance for atomic wires of Na has also been analyzed using a pseudoatom-jellium model [19], where it was found that the sign of the effect is sensitive to the lead cone angle. Applying the first-principle recursion-transfer-matrix method Hirose at al. [22] showed that the bonding nature of the atoms at the contact plays a crucial role in determining transport properties. Lee and Kim[17] and Zeng and Claro [18], studied the effects of symmetries and found that the conductance of atomic chains with mirror symmetry and an odd number of atoms is always equal to the conductance quantum 2e 2 /h.In the literature various heuristic models have been proposed to interpret physically the results mentioned above: the standing wave model proposed by Emberly et al. [12], a simple barrier model suggested by Lee et al. [23], a simplified one-dimension...