The U.S. Treasury Department and the IRS announced today that all legally married same-sex couples will be able to file their federal taxes as married. This will apply even if a couple resides in a state that does not recognize their marriage, so long as they were married in a state that does.

“Today’s ruling provides certainty and clear, coherent tax filing guidance for all legally married same-sex couples nationwide. It provides access to benefits, responsibilities and protections under federal tax law that all Americans deserve,” said Treasury Secretary Jack Lew.

You can read the full announcement here. The IRS has also posted an FAQ for married same-sex couples, available here.