Even with NASA and Mars on SpaceX's horizon, serial entrepreneur Elon Musk says he plans to stay put at electric carmaker Tesla.

"I'll continue to be involved with Tesla as far into the future as I can possibly tell...," he said in an interview on CNBC'S "Closing Bell," Tuesday. "I feel good about being able to produce a compelling mass-market car in the next three years."

Tesla shares closed more than 3 percent higher on Tuesday, but edged lower in after-hours trading. (Click here to see what the stock is doing now.)

Read MoreTesla to allow others to use its patents: Musk



As his other venture, SpaceX, vies against established players such as Boeing for a big NASA contract, Musk said his firm will just keep going, even if the contract falls through. He noted that SpaceX's progression would be slowed down if the U.S. government doesn't choose the company's Dragon V2 as the next crew carrier to the International Space Station.

"It's possible that we may not win the commercial crew contract... we'll do our best to continue on our own, with our own money," Must said. "We would not be where we are today without the help of NASA."



SpaceX, which was just named No. 1 on CNBC's second annual CNBC Disruptor 50 list, recently unveiled the Dragon V2, a spacecraft that it hopes will carry NASA astronauts to the International Space Station as soon as 2016.

