Go to a site like Amtrak, Rail Europe or Indian Railway.
Get the price of your tickets by entering the number of passengers, whether your buying a one way or round trip ticket, the time and date the train departs and the ages of the people traveling with you.
Click "Go" to see the ticket prices.
Select "Add to Cart." when you find the ticket and price you prefer. At this point the website may ask you to sign up for an account. However, some sites let you continue to book your ticket as a guest, meaning you don't have to sign up for an account.
Click "Next" to pay for your ticket. Enter your payment information such as your credit card number and expiration date. Click "Purchase" to buy and book your train ticket. The website will send a confirmation number to your email address.