What is cost basis in stock investing?

it is the amount that you initially invest. Plus and amount it costs you to invest it. Or the amount that you receive when someone leaves you an amount as a beneficiary.