The gain shown on the M1 Finance platform is the unrealized gain from owning this security. An unrealized gain is a profit that exists on paper, resulting from an investment. It is a profitable position that has yet to be sold in return for cash, such as a stock position that has increased in capital gains but still remains open.
Unrealized Gain = Value of Investment - Cost of Investment
Unrealized Gain % = (Value of Investment - Cost of Investment) / Cost of Investment