If you are roasting your asparagus in an oven, it takes about 12-15 minutes at 425 degrees Fahrenheit. But if you are cooking them in an air fryer, the asparagus only takes 7 minutes on high. Because of the air circulation in the fryer, the asparagus cook much faster.