There are two separate bars. If you have been unlawfully present for more than 180 days (but less than one year) you are not admissible for three years. If you have been unlawfully present for more than one year you are not admissible for ten years.
In general Any alien (other than an alien lawfully admitted for permanent residence) who—
(I) was unlawfully present in the United States for a period of more than 180 days but less than 1 year, voluntarily departed the United States (whether or not pursuant to section 1254a (e) [3] of this title) prior to the commencement of proceedings under section 1225 (b)(1) of this title or section 1229a of this title, and again seeks admission within 3 years of the date of such alien’s departure or removal, or
(II) has been unlawfully present in the United States for one year or more, and who again seeks admission within 10 years of the date of such alien’s departure or removal from the United States,
is inadmissible.