Mazda Repair Questions? Ask Mechanics for Answers ASAP
is the engine light on?
it does this all the time?
4 or 6 cylinder?
3.0 or 4.0
do you have access to a scan tool? can you clean the throttle body and maf sensor? do you know how to check for vacuum or intake leaks?
I would check for pending or history codes, the mass air flow sensor is located between the air filter and the throttle body, any auto parts store sell mass air flow sensor cleaner
if cleaning the mass air flow and throttle body o no help, then you would need to check the iac (idle air control) they are common to fail and the next step would be to check for intake and vacuum leaks