Magma is the name given to molten material inside the earth (volcano) whereas lava is the name given to molten material which is often ejected from a volcano and then cools and solidifies.