法社会学(ほうしゃかいがく、英: sociology of law、legal sociology、独: Rechtssoziologie)は、法に関する社会学。法制度と社会の関わりを分析する学問分野。基礎法学の一つである。