MATSAS is a script-based MATLAB program for analysis of X-ray and neutron small-angle scattering (SAS) data obtained from various facilities. The program has primarily been developed for sedimentary rock samples but is equally applicable to other porous media. MATSAS imports raw SAS data from .xls(x) or .csv files, combines small-angle and very small angle scattering data, subtracts the sample background, and displays the processed scattering curves in log-log plots. MATSAS uses the polydisperse spherical (PDSP) model to obtain structural information on the scatterers (scattering objects); for a porous system, the results include specific surface area (SSA), porosity (Φ), and differential and logarithmic differential pore area/volume distributions. In addition, pore and surface fractal dimensions (Dp and Ds, respectively) are obtained from the scattering profiles. The program package allows simultaneous and rapid analysis of a batch of samples, and the results are then exported to .xlsx and .csv files with separate spreadsheets for individual samples. MATSAS is the first SAS program that delivers a full suite of pore characterizations for sedimentary rocks. MATSAS is an open-source package and is freely available at GitHub (https://github.com/matsas-software/MATSAS).