Preheat the oven: Set your oven to 375°F (190°C) to get it nice and hot for baking.
Prepare the pie crust: Bake the unbaked pie crust according to package directions or your preferred method. Once it’s baked, let it cool completely.
Mix the filling: In a medium saucepan, whisk together the melted butter, sugar, cocoa powder, and flour until well combined.
Add wet ingredients: Gradually whisk in the beaten eggs and milk until the mixture is smooth and free of lumps.
Cook the filling: Place the saucepan over medium heat. Stir the mixture constantly until it thickens—about 5-7 minutes. Once thickened, remove it from the heat.
Add vanilla: Stir in the vanilla extract for an added depth of flavor.
Pour into the crust: Pour the hot chocolate filling into the cooled pie crust, spreading it evenly.
Chill: Refrigerate the pie for at least 2 hours, or until thoroughly chilled.
Serve: Enjoy your pie chilled, topped with whipped cream or a scoop of vanilla ice cream if desired.
