The system will be built into ScotRail’s existing app, with popular single and return tickets the first to be made available in a pilot project.
Developed by technology company Rambus Inc, the app will allow customers to purchase and download tickets, and then scan through ticket gates with their phone.
A wider rollout to all routes and ticket types is planned in future.
ScotRail commercial director Lesley Kane said: “This pilot app delivers the convenient, easy access to tickets and travel that we know our customers want.
“Over the coming months, customers will be able to buy and download digital tickets from a single app, anytime, anywhere.
“With the rollout of new trains and station upgrades right across the country too, this is a really exciting time for Scotland’s railway as we continue to build the best railway this country has ever had.”
Rambus Ticketing vice president and general manager Russell McCullagh said: “Delivering a modern and innovative transport experience that customers can rely on is a key driver for smart mobile ticketing.
“We’re delighted to combine our expertise developing and deploying high-volume ITSO-based ticketing systems, through our Nevis Technologies joint venture, with ScotRail’s drive to provide a truly seamless and leading-edge travel experience.”