Homemade Refried Beans
Place beans in a pot and cover with 2-3 inches of water. Bring to a boil then reduce heat to medium-low, so that the beans come to a soft boil. Partially cover pot with lid. Let beans cook, checking for doneness every 15-30 minutes, then stirring and adding more water, if necessary. Cook until beans are done to your preference. Drain beans and reserve until ready to fry. Beans may be refrigerated if not frying within a few hours.
When ready to fry beans, heat oil in a saucepan over medium heat and add onions when oil is hot. Let cook until onions begin to turn golden, about 10 minutes. Add in cumin and stir, then add beans. Mash beans with a fork, the back of a wooden spoon, or a potato masher and stir. Continue until most beans are completely mashed. Some bean pieces are okay. Stir in cayenne pepper and season liberally with salt and pepper. If desired, dilute beans down to a creamier texture by adding water, 1 Tbsp at a time, until they reach your desired consistency.