when were steam locomotives invented

Steam railway locomotives were first successfully built and operated in the very early 1800s, with Richard Trevithick’s locomotive of 1804 usually credited as the first full‑scale working example.
Key date and inventor
- The first full‑scale working railway steam locomotive was built by British engineer Richard Trevithick in South Wales.
- On 21 February 1804, his locomotive hauled a load along the Pen‑y‑darren (Penydarren) Ironworks tramway, often cited as the first recorded steam‑hauled railway journey.
Before and after 1804
- Earlier steam engines by Savery, Newcomen and James Watt in the 1700s powered pumps and machinery, but they were not true railway locomotives.
- Steam locomotives became a commercial transport success in the 1820s–1830s, especially with George Stephenson’s Locomotion No. 1 (1825) and The Rocket (1829), which helped launch widespread railway use.
TL;DR: When were steam locomotives invented? Around 1804, with Richard Trevithick’s pioneering railway steam locomotive in South Wales, building on earlier 18th‑century steam engine developments.
Information gathered from public forums or data available on the internet and portrayed here.