A shortage affects supply and demand because it creates a scenario with more demand for a product than the available supply. When this happens, the product price will increase as people compete for the available units.