Index, the S&P 500®Index and the Linked to the Least Performing of the Russell 2000®Semiconductor ETF The Auto-Callable Notes Linked to the Least Performing of the Russell 2000®Index, the S&P 500® Beginning with the August 5, 2026 Call Observation Date, automatically callable monthly for an amount equal to the applicable Call Amount if, on the applicable CallObservation Date, the Observation Value of each Underlying is equal to or greater than its Call Value. The Call Observation Dates and Call Amounts are indicated on Assuming the Notes are not called prior to maturity, if the Ending Value of each Underlying is greater than or equal to 80% of its Starting Value, at maturity, you willreceive at least $1,410.00 (set on the pricing date) per $1,000.00 in principal amount of your Notes. Any payment on the Notes is subject to the credit risk of BofA Finance LLC (“BofA Finance” or the “Issuer”), as issuer of the Notes, and Bank of America Corporation CUSIP No. 09711JJ67.The initial estimated value of the Notes as of the pricing date is expected to be between $895.50 and $945.50 per $1,000.00 in principal amount of There are important differences between the Notes and a conventional debt security. Potential purchasers of the Notes should consider theinformation in “Risk Factors” beginning on page PS-9of this pricing supplement, page PS-5 of the accompanying product supplement, page S-6 of the accompanying prospectus supplement, and page 7 of the accompanying prospectus.None of the Securities and Exchange Commission (the “SEC”), any state securities commission, or any other regulatory body has approved or disapproved ofthese securities or determined if this pricing supplement and the accompanying product supplement, prospectus supplement and prospectus is truthful orcomplete. Any representation to the contrary is a criminal offense. Certain dealers who purchase the Notes for sale to certain fee-based advisory accounts may forgo some or all of their selling concessions, fees orcommissions. The public offering price for investors purchasing the Notes in these fee-based advisory accounts may be as low as $977.50 per $1,000.00 in The underwriting discount per $1,000.00 in principal amount of Notes may be as high as $22.50, resulting in proceeds, before expenses, to BofA Finance of In addition to the underwriting discount above, if any, an affiliate of BofA Finance will pay a referral fee of up to $5.00 per $1,000.00 in principal amount of theNotes in connection with the distribution of the Notes to other registered broker-dealers. Approximately 4 years, unless previously automatically called. Underlyings:The Russell 2000®Index (Bloomberg symbol: “RTY”), a price return index, the S&P 500®Index (Bloomberg symbol: “SPX”), a pricereturn index and the iShares®Semiconductor ETF (Bloomberg symbol: “SOXX”). Observation Dates” in the accompanying product supplement.Maturity Date*:August 3, 2029 Starting Value:With respect to the RTY, its closing level on the pricing date.With respect to the SPX, its closing level on the pricing date.With respect to the SOXX, its Closing Market Price on the pricing date. With respect to the RTY, its closing level on the applicable Call Observation Date.With respect to the SPX, its closing level on the applicable Call Observation Date. With respect to the SPX, its closing level on the Valuation Date.With respect to the SOXX, its Closing Market Price on the Valuation Date, multiplied by its Price Multiplier. With respect to each Underlying, 100.00% of its Starting Value. Price Multiplier:With respect to the SOXX, 1, subject to adjustment for certain events relating to that Underlying as described in “Description of the Notes— Anti-Dilution and Discontinuance Adjustments Relating to ETFs” beginning on page PS-28 of the accompanying product supplement. Threshold Value:With respect to each Underlying, 60.00% of its Starting Value. August 7, 2028August 10, 2028 160.0060.00%$1,410.0041.00%150.0050.00%$1,410.0041.00% 140.0040.00%$1,410.00 120.0020.00%$1,410.0041.00%110.0010.00%$1,410.0041.00% $1,410.00 90.00-10.00% be made only after carefully considering the risks of an investment in the Notes, including those discussed below, with your advisors in light of your particularcircumstances. The Notes are not an appropriate investment for you if you are not knowledgeable about significant elements of the Notes or financial matters ingeneral. You should carefully review the more detailed explanation of risks relating to the Notes in the “Risk Factors” sections beginning on page PS-5 of theaccompanying product supplement, page S-6 of the accompanying prospectus supplement and page 7 of the accompanying prospectus, each as identified on Structure-related RisksYour investment may result in a loss; there is no guaranteed return of principal.There is no fixed principal repayment amount on the Notes at maturity. If the Notes are not automatically called prior to maturity and the Endin