Sticker price isn’t the only cost to think about when buying a car.

New cars at dealer showroomGreentellect Studio/Shutterstock

Buying a car is a big decision, but price isn’t the only factor. Inevitably, it will require service. How much will the model you’re eying cost you to repair?

Fortunately, you can find out. CarMD crunched the numbers in its 2018 Vehicle Health Index™. Based on 5.6 million vehicles in which the check-engine light went on in 2018, they determined the makes and models that cost the least to fix. Here they are:

1. Mazda

1 february 2017:in chiangmai thailand, The Mazda symbol. Mazda, is a Japanese automaker based in Fucha, Aki District, Hiroshima Prefecture, Japan.APISITH/Shutterstock

The Japanese automaker topped the list with the lowest average check-engine-related repair cost: $285.70. And you’re in luck, if you’re a fan of convertibles. The least expensive Mazda model to fix was the 2013 Mazda MX-5 Miata, with an average cost of $81.

2. KIA

ODESSA, UKRAINE - AUGUST 13, 2017: Kia motors logo and badge on the carrealist2000/Shutterstock

This South Korean automaker’s average repair costs came in at $319.97. Which model was least expensive to fix? The 2016 KIA Soul, with a typical repair cost of $70.