This pricing supplement, which is not complete and may be changed, relates to an effective Registration Statement under the Securities Act of 1933. This pricing supplement and the accompanying product supplement, prospectus supplement and prospectus are not an offer to sell these securities in any country or jurisdiction where such an offer would not be permitted.

May 2024

Preliminary Pricing Supplement - Subject to Completion

Dated May 22, 2024

(To Prospectus dated December 30, 2022,

Series A Prospectus Supplement dated December 30, 2022 and

Product Supplement EQUITY-1 dated December 30, 2022)

Filed Pursuant to Rule 424(b)(2)

Registration Statement Nos. 333-268718 and 333-268718-01

BofA Finance LLC

Structured Investments

Opportunities in U.S. and International Equities

Callable Contingent Income Securities due June 4, 2026

Payments on the Securities Based on the Worst Performing of the S&P 500® Index, the Russell 2000® Index and the Nikkei Stock Average Index

Fully and Unconditionally Guaranteed by Bank of America Corporation

Principal at Risk Securities

The securities do not guarantee the repayment of principal and do not provide for the regular payment of interest. Instead, the securities will pay a contingent quarterly coupon but only if the index closing value of each of the S&P 500® Index, the Russell 2000® Index and the Nikkei Stock Average Index on each index business day during the applicable quarterly observation period is at or above 75% of its respective initial index value, which we refer to as the respective coupon barrier level. If the index closing value of any underlying index is less than the coupon barrier level for such index on any index business day during an observation period, we will pay no contingent quarterly coupon for the related quarterly period. In addition, beginning on September 6, 2024, we will have the right to redeem the securities at our discretion on any quarterly redemption date for a redemption payment equal to the sum of the stated principal amount plus any contingent quarterly coupon otherwise due with respect to the related observation period. An early redemption of the securities will not automatically occur based on the performance of the underlying indices. At maturity, if the securities have not previously been redeemed and the final index value of each underlying index is greater than or equal to 75% of the respective initial index value, which we refer to as the downside threshold level, the payment at maturity will be the stated principal amount and, if payable, the contingent quarterly coupon otherwise due with respect to the final observation period. If, however, the final index value of any underlying index is less than its downside threshold level, investors will be exposed to the decline in the worst performing underlying index on a 1-to-1 basis and will receive a payment at maturity that is less than 75% of the stated principal amount of the securities and could be zero. Accordingly, investors in the securities must be willing to accept the risk of losing their entire initial investment based on the performance of any underlying index and also the risk of not receiving any quarterly coupons during the entire 2-year term of the securities. Because payments on the securities are based on the worst performing of the underlying indices, a decline beyond the respective coupon barrier level on any index business day during an observation period and/or beyond the respective downside threshold level on the final observation date, as applicable, of any underlying index will result in the forfeiture of contingent quarterly coupons and/or a significant loss of your investment, as applicable, even if the other underlying indices have appreciated or have not declined as much. Investors will not participate in any appreciation in any underlying index. The securities are for investors who are willing to risk their principal and seek an opportunity to earn contingent quarterly coupon payments at a potentially above-market rate in exchange for the risk of receiving no contingent quarterly coupon payments if any underlying index closes below the coupon barrier level for such index on any index business day during the related observation period, and the risk of an early redemption of the securities at our discretion. The securities are our senior debt securities. Any payments on the securities are fully and unconditionally guaranteed by Bank of America Corporation (“BAC”). The securities are issued as part of BofA Finance LLC’s (“BofA Finance”) “Medium-Term Notes, Series A” program.

All payments on the securities are subject to the credit risk of BofA Finance, as issuer of the securities, and BAC, as guarantor of the securities. If we default on our obligations, you could lose some or all of your investment. These securities are not secured obligations and you will not have any security interest in, or otherwise have any access to, any underlying reference asset or assets.