We define and study a holomorphic functional calculus for a single element in complex and real complete A-pseudoconvex algebras with unit. As a consequence of the main result we obtain the spectral mapping theorem and existence of the logarithm and the nth root of an algebra element.