Virtual currencies, meet the real world.

The Internal Revenue Service made its first pronouncement on the issue Tuesday, saying it will treat bitcoin and other virtual currencies like property such as stocks, and not currency, giving a potential boost to investors but imposing extensive record-keeping rules. The rule generally would impose capital-gains taxes, rather than higher regular tax rates, on investors' profits.

The...