Before rejoicing over a Bitcoin Cash windfall, here’s a warning: You may owe taxes on it.

After years of discord over bitcoin’s future, the digital currency recently split into two competing versions: one called bitcoin and an alternate called Bitcoin Cash. As a result, each bitcoin owner received an equal amount of Bitcoin Cash, or the right to it.

But...