A private Japanese moon lander went into free-fall while trying to land on the lunar surface last month, company officials have said, blaming a software issue and a last-minute switch in the touchdown location.

The spacecraft belonging to the company ispace was originally supposed to land in a flat plain but the target was changed to a crater before December’s launch.

The crater’s steep cliff apparently confused the onboard software, and the two metre spacecraft went into a free-fall from less than three miles up, slamming into the lunar surface.

The estimated speed at impact was more than 300 feet (100 metres) per second, said the company’s chief technology officer, Ryo Ujiie.

Nasa’s Lunar Reconnaissance Orbiter photographed the crash site the next day as it flew overhead, revealing a field of debris as well as lunar soil hurled aside by the impact.

Computer simulations done in advance of the landing attempt did not incorporate the terrain of the new landing site, Mr Ujiie said.

Chief executive and founder Takeshi Hakamada said the company is still on track to attempt another moon landing in 2024, and that all the lessons learned will be incorporated into the next try. A third landing attempt is planned for 2025.

If successful, ispace would have been the first private company to successfully land a spacecraft on the moon. Only three governments have achieved that: Russia, the US and China. An Israeli nonprofit tried in 2019, but its attempt also ended in a crash landing.

Named Hakuto, Japanese for white rabbit, the spacecraft and its experiments were insured, according to Mr Hakamada. The United Arab Emirates had a mini lunar rover on board that was lost in the crash.

Two US companies have lunar landers awaiting launch later this year from Cape Canaveral, in partnership with Nasa.