The Internal Revenue Service has begun sending letters to more than 10,000 cryptocurrency holders, warning they may have broken federal tax laws.

The agency wasn’t specific about the possible violations it was reviewing, but those who hold digital currencies could be subject to a variety of taxes, especially on capital gains.

“Taxpayers should...