Smartphone ubiquity has led to rapid developments in portable diagnostics. While successful, such platforms are predominantly optics-based, using the smartphone camera as the sensing interface. By contrast, magnetics-based modalities exploiting the smartphone compass (magnetometer) remain unexplored, despite inherent advantages in optically opaque, scattering or auto-fluorescing samples. Here we report smartphone analyte sensing utilizing the built-in magnetometer for signal transduction via analyte-responsive magnetic-hydrogel composites. As these hydrogels dilate in response to targeted stimuli, they displace attached magnetic material relative to the phone's magnetometer. Using a bilayer hydrogel geometry to amplify this motion allows for sensitive, optics-free, quantitative liquid-based analyte measurements that require neither any electronics nor power beyond that contained within the smartphone itself. We demonstrate this concept with glucose-specific and pH-responsive hydrogels, including glucose detection down to single-digit micromolar concentrations with potential for extension to nanomolar sensitivities. The platform is adaptable to numerous measurands, opening a path towards portable, inexpensive sensing of multiple analytes or biomarkers of interest. Smartphone cameras have been widely used for analysis purposes, but the use of magnetometers in smartphones is limited in this regard. In this study, the authors present a smartphone analyte sensor platform that utilizes the built in magnetometer to directly translate signals through analyte-responsive magnetic-hydrogel composites.