Is there tax deducted when buying and selling stocks?

Starting from January 1, 2023, the Internal Revenue Service (IRS) in the United States will impose a tax of 10% on the total transaction amount for "foreign individuals investing in PTP-type companies." Other stocks will not be affected.

Updated