The company says it will donate one share to each child, with Musk matching the donation.
The proposed giveaway would be worth more than $18 billion at current stock prices.
Children will receive one share from the company and one from him personally, Musk said in a brief post on X, without providing details.
There are around 72 million children under age 18 in the US. SpaceX shares closed at $127.44 on Wednesday, valuing the pledge at around $18.35 billion.
Musk and rival AI company Anthropic have recently laid out sharply different blueprints for sharing some of the spoils of the AI boom.
SpaceX said earlier in the day it would contribute one newly issued share of its Class A common stock to every currently active Trump Account, adding that Musk will personally match the number of shares donated by the company.
SpaceX did not immediately respond to a request for comment on whether Musk's SpaceX share donations would be linked to Trump Accounts or come with any kind of lockup period.