i started my car and it idled fine but when i put it in gear it acted like it wanted to die, it was cutting out and running very rough, so I put it back in park and it quit and then I put it back in gear and it started it again but worse.
My car has 225000 miles.
My car has an automatic transmission.
It sounds like you may have a faulty MAP sensor. The Manifold Absolute Pressure (MAP) sensor senses engine load and generates a signal that is proportional to the amount of vacuum in the intake manifold. The engine computer then uses this information to adjust ignition timing and fuel enrichment. When the engine is working hard, intake vacuum drops as the throttle opens wide. The engine takes in more air, which requires more fuel to keep the air/fuel ratio in balance. When the computer reads a heavy load signal from the [MAP sensor]((https://www.yourmechanic.com/services/manifold-absolute-pressure-sensor-map-sensor-replacement), it adjusts the fuel mixture to slightly more rich than normal so the engine can produce more power. The computer will then retard (back off) ignition timing slightly to prevent detonation (spark knock) that can damage the engine and decrease performance. This may also be caused by other closely related components such as a dirty or failing mass air-flow sensor, a faulty throttle position sensor or potentially a vacuum leak. I would recommend having an expert from YourMechanic come to your location to diagnose and inspect your vehicle.
Have a car question? Get free advice from our top-rated mechanics.