I have crypto currency that I have kept for over a year, and it is worth less than I invested. If I cash out at a loss...

I have crypto currency that I have kept for over a year, and it is worth less than my initial invested money. If I cash out at a loss, how does this work on my taxes? Is it still taxed? is it a write off? how does that work ?