To know what engine you have on your Mazda Miata, or you are inspecting one you want to buy, open the hood and check the code stamped on the engine block. The first 4 or 5 numbers or letters will give you all the information you need to know, from engine type to displacement.